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.6.a.tar.gz (40.7 kB view details)

Uploaded Source

File details

Details for the file emails-0.4.6.a.tar.gz.

File metadata

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

File hashes

Hashes for emails-0.4.6.a.tar.gz
Algorithm Hash digest
SHA256 f0b45d9b38c2781eac6e87c432fcf9d9209be12b7c32d16ebb750d4e98f46cd7
MD5 35bf42ca2d932aaa207f4fbeb1db7c89
BLAKE2b-256 225b7792eeea6df646fa3941391a069203ef62e78ec7c3476615884a1fa4f7d4

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