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.5.tar.gz (42.2 kB view hashes)

Uploaded Source

Built Distribution

emails-0.5-py2.py3-none-any.whl (57.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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