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', ''))
   >>> message.attach(data=open('bill.pdf'), filename='bill.pdf')

send message and get response from smtp server:

   >>> r = message.send(to='', smtp={'host': '', '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 <>`_
* `source code <>`_

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for emails, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size emails-0.6-py2.py3-none-any.whl (56.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size emails-0.6.tar.gz (44.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page