Modern python library for emails.
Project description
Modern python library for email.
Build message:
>>> import emails
>>> message = emails.html(html="<p>Hi!<br>Here is your receipt...",
subject="Your receipt No. 567098123",
mail_from=('Some Store', 'store@somestore.com'))
>>> message.attach(data=open('bill.pdf'), filename='bill.pdf')
send message and get response from smtp server:
>>> r = message.send(to='s@lavr.me', smtp={'host': 'aspmx.l.google.com', 'timeout': 5})
>>> assert r.status_code == 250
and more:
DKIM signature
Render body from template
Flask extension and Django integration
Message body transformation methods
Load message from url or from file
Documentation: python-emails.readthedocs.org
Flask extension: flask-emails
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emails-0.5.2.tar.gz
(42.6 kB
view hashes)
Built Distribution
emails-0.5.2-py2.py3-none-any.whl
(57.5 kB
view hashes)
Close
Hashes for emails-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c7a43719973e30063f22eaa11ac4d280972d31bab205381eda97ce9f0e7fb0 |
|
MD5 | 87539d32e2c4f99de8e4dfb0f55b6449 |
|
BLAKE2b-256 | ce93f4bc381aa5523286453f89a007d1729f42af34c36a33544a56875339c5d3 |