Skip to main content

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



https://travis-ci.org/lavr/python-emails.png?branch=master https://img.shields.io/pypi/v/emails.svg http://allmychanges.com/p/python/emails/badge/ https://coveralls.io/repos/lavr/python-emails/badge.svg?branch=master

Project details


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.12.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emails-0.4.12-py2.py3-none-any.whl (56.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file emails-0.4.12.tar.gz.

File metadata

  • Download URL: emails-0.4.12.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for emails-0.4.12.tar.gz
Algorithm Hash digest
SHA256 2908591e2805dec5189deeb57057e4fa11c27a45f752c48476da9f4637d0d77e
MD5 f138e8f465a397f833a280bf1fff2f94
BLAKE2b-256 9bd3f75a55b4edd50f741f8d0938a99e52aa8549bca64c6fccad46d2de5b90d7

See more details on using hashes here.

File details

Details for the file emails-0.4.12-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for emails-0.4.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8cf91cefb915333d296a7de4c38b024d27617b4e246832d5d75de9c166ede73d
MD5 1c39dbd38cc9b74d80793e5ebb82a248
BLAKE2b-256 a66a0c3b33b861ed774e4ea857f198f1864dd839d20a9fd4668263ab08a6c0bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page