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', 'rb'), 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.5.tar.gz
(43.2 kB
view hashes)
Built Distribution
emails-0.5.5-py2.py3-none-any.whl
(58.3 kB
view hashes)
Close
Hashes for emails-0.5.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb349bb9a356c0190cc362173d38456c5b9eb10106c995c5ee4f408d2a26c81 |
|
MD5 | 9526848acfd6e3fa4878b0cea8550bb3 |
|
BLAKE2b-256 | 259a1cb0d60908fb1a7aefe8bb6746c559f16ab739d8747552e8733f94e0a59e |