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.1.0.tar.gz (34.0 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.1.0-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for emails-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f62ed41a3b0c5c6220e9e49ca93525c15a099b8c6867b5000e5b5b7b46665b12
MD5 d60212bd4d12f5f0fa25c610596ab250
BLAKE2b-256 c5c1275361a29a69963e4224741dbecabaa5a7bdc655ad03d740ab242bc35ea8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: emails-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e39253c42435819b2c405f26b76e857f4cd4974df8331a0af1fb09226cc54e1
MD5 5aae5d45cf5a6d0c791571c4aae543e1
BLAKE2b-256 a28fe567b7b706006682f2dcb2a6d2f7dfc042b784edf5ae78912bee0fa92118

See more details on using hashes here.

Provenance

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