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

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-1.0.1.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

emails-1.0.1-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emails-1.0.1.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for emails-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2dcdf3dba5109499ce853c1b57dfda859c1052defd4fd7d59f97ee2f1dd02190
MD5 a1e3c51fa7cedccee42f19da42383d36
BLAKE2b-256 331f8c8febf3fdc61c34d316e94f2af6365507a95814889abbcaaeb42aaab003

See more details on using hashes here.

Provenance

The following attestation bundles were made for emails-1.0.1.tar.gz:

Publisher: python-publish.yml on lavr/python-emails

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file emails-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: emails-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for emails-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9dada44bd44d0fa2e98bebb9a4ee06aeb22ee929eb1396eb6d1a91c5840c7fb
MD5 9361a19a76329dd57657dc4736868637
BLAKE2b-256 ee4a63e1a032c4ce68542ee82af218086c8e7a5ad45c4963edcbad369a00796e

See more details on using hashes here.

Provenance

The following attestation bundles were made for emails-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on lavr/python-emails

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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