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


Documentation: python-emails.readthedocs.org

Flask extension: flask-emails



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.3.tar.gz (42.6 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.3-py2.py3-none-any.whl (57.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for emails-0.5.3.tar.gz
Algorithm Hash digest
SHA256 1b0e063e0852ac16d2851002dd9dce0dd09789e81eea9c58c5bce7cdd650a31e
MD5 e82422e28c6e9b8ac801dd998a291915
BLAKE2b-256 52bb2325ec6769c5b4482d3460149e0714cc9e2aac268ea380901dae8da383d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for emails-0.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 364ef5f135d52def63f743db38645b7ffd8eeae43ed280033656e2eb54b05305
MD5 e85763b679e6f403ba93059895a061e6
BLAKE2b-256 553560246db448008d8d45ffae61d696dd8bdee9daec8789679f87342e4135b0

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