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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for emails-0.5.tar.gz
Algorithm Hash digest
SHA256 5091128eb664688fefef6e8eec703bc1d763c0558869fc9910625c643e01692e
MD5 54e0d2bedb0ad0e8c59da85adba9dd65
BLAKE2b-256 21281ed3a667ccedbe1321dd62a1838da15b69def044ceb3ccf256c342508693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for emails-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2405bd3fa73b67b1f7e3d12524c54b37c0ba9f19f943bc20697fb2af88a3ba20
MD5 80b1ad378402c9feaba5eafd869ac304
BLAKE2b-256 7b9a2fc6567aa8ad4b7782c58c72ce3c467ea6a805022eb7c03e0a1ddb84b754

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