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.11.tar.gz
(41.9 kB
view hashes)
Built Distribution
Close
Hashes for emails-0.4.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5ced00bf254cf740332a9a7239061b76b9dcfaa4c94550f69dd9572ee1c8270 |
|
MD5 | 17092ba319864faf4e777d948837f952 |
|
BLAKE2b-256 | 799aded1e553c3e8cff37ae651df5a4953afbdb7b49b712a2f6260c9979f8bd9 |