Modern python library for emails.
Project description
python-emails
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
Links
`````
* `documentation <http://python-emails.readthedocs.org/>`_
* `source code <http://github.com/lavr/python-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.6.tar.gz
(44.1 kB
view details)
Built Distribution
emails-0.6-py2.py3-none-any.whl
(56.2 kB
view details)
File details
Details for the file emails-0.6.tar.gz
.
File metadata
- Download URL: emails-0.6.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c2d67ea8b8831967a750d8edc6e77040d7693143fe280e6d2a367d9c36ff88 |
|
MD5 | c3aedd3edd1568a16b91439d0904e080 |
|
BLAKE2b-256 | d3f9c1e315aa82ed9f037186c30109200fb4b4c51b5483b8065daa0ca836a336 |
File details
Details for the file emails-0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: emails-0.6-py2.py3-none-any.whl
- Upload date:
- Size: 56.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c1e3198075709cc35f67e1b49e2da1a2bc087e9b444073db61a379adfb7f3c |
|
MD5 | 49f8a806a7e9f66420ae5ac3e5ba338d |
|
BLAKE2b-256 | 557eb648d640d88d31de49e566832aca9cce025c52d6349b0a0fc65e9df1f4c5 |