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.2.tar.gz (32.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.0.2-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emails-1.0.2.tar.gz
  • Upload date:
  • Size: 32.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.0.2.tar.gz
Algorithm Hash digest
SHA256 3d73940d8bb295595024bd23f933d27349fb109b0f502299836b74b95360b7dd
MD5 e994b0444a6982f9047f6a9b754e20c9
BLAKE2b-256 c6a1b8416508d625ecd2badd1dc7b13a1112e7d9762c9370fcbacf3f772e5af0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: emails-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 622d6b69f5f1a386bcd1df007b726822b0589804a23dbbdb80a2562c2c297ca2
MD5 14091128e4b8ed1754a5f6936981d807
BLAKE2b-256 2164e8c6800dc6377676ab44186054acd7e56d5c38181d61d5ffaf2912024ad9

See more details on using hashes here.

Provenance

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