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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emails-0.4.13.tar.gz.
File metadata
- Download URL: emails-0.4.13.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14584341b682eafbd403d5fdfc5c18706eebedb25c6e3a55483ad5f6975fdac
|
|
| MD5 |
93d8dff8d7ec9f37ae20d951df0dfac9
|
|
| BLAKE2b-256 |
d9cd29156eb6b0157612eb51f4328610a5df078eefe6a90d363247cf5ac94ad2
|
File details
Details for the file emails-0.4.13-py2.py3-none-any.whl.
File metadata
- Download URL: emails-0.4.13-py2.py3-none-any.whl
- Upload date:
- Size: 56.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8af95fb2a4864765ea8f3ae5d4f29b1b1f6983de89ce528d956788ed2e5aadc
|
|
| MD5 |
e30859a980859ea4b153cab540c1fb20
|
|
| BLAKE2b-256 |
9cbe23237bcf6d2fc0aeaa9366a7b1c3d42d31701d133a4d741bfa97581d40b0
|