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.0.tar.gz (31.8 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.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emails-1.0.0.tar.gz
  • Upload date:
  • Size: 31.8 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.0.tar.gz
Algorithm Hash digest
SHA256 4634ff57d304ddf96fdda68d125905d4d2e96728f524f605276a30f648bf7a0a
MD5 5db77a319bcc6af1297d3801e3fd236a
BLAKE2b-256 50d8ab1a086db399aa66a0712d0cbb3ab32e064be6903883c645e5cfbbd81def

See more details on using hashes here.

Provenance

The following attestation bundles were made for emails-1.0.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: emails-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 450da2aa0f45bb921977f83d2615abc32e2c5758192f71fe2db5df052a647bee
MD5 4d184eecf2e140871c1e37c8dc07b74e
BLAKE2b-256 9ba2128a1bdaadf23dafd0840f0a541e4728e9d8b348b03654972f55c492ebd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for emails-1.0.0-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