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
See documentation on python-emails.readthedocs.org
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.4.5.tar.gz
(40.0 kB
view hashes)
Built Distribution
emails-0.4.5-py2.py3-none-any.whl
(54.1 kB
view hashes)
Close
Hashes for emails-0.4.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5092e546bf40180d5a73b2715d43f3b4d12b7b31ae3be9b5309a43d521029a57 |
|
MD5 | 416a3c379e545ffec6fdc779dcdfa697 |
|
BLAKE2b-256 | d35ac1ab1928ffcdc43578aaa44c7abb0633d00df2657cfbfe1baa86a6c8e197 |