Skip to main content

Email builder and sending handler interface.

Project description

Email-Simplified

Email-Simplified provides a much simpler interface for creating and sending email messages compared to Python's email and smtplib modules. It also defines an interface for using other email sending providers that offer an API other than SMTP.

Flask-Email-Simplified is an extension that integrates Email-Simplified with Flask's configuration.

Install

Install from PyPI:

$ pip install email-simplified

Example

from email_simplified.handlers import SMTPEmailHandler
from email_simplified import Message

email = SMTPEmailHandler()
message = Message(subject="Hello", text="Hello, World!", to=["world@example.test"])
email.send([message])

Features

  • Properly sets up TLS and uses the operating system trust store by default.
  • Handles international domain names. Allows Unicode in names (assuming server SMTPUTF8 support).
  • Generates text from HTML if only HTML content is given (although you should still give both to get better results).
  • Handles inline HTML attachments with CID generation.
  • Sync and async sending.
  • Can convert to and from MIME messages, and can send MIME messages in addition to its own message class. This allows supporting arbitrary MIME constructs if you need to.
  • Can batch recipients for sending with servers that restrict the number of recipients per message.
  • Provides a test handler as well to collect instead of send messages during tests.
  • Can be configured by name and config dict rather than imports and arguments, for framework integration.
  • Complete static typing.

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

email_simplified-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

email_simplified-0.1.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file email_simplified-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for email_simplified-0.1.1.tar.gz
Algorithm Hash digest
SHA256 604f82ab5ee31d97e60ed4840fcd62b3aabd865384aed4e682c0b9328f3b58f5
MD5 c07208dc7f80c868489567a6d19d7679
BLAKE2b-256 a56877a91490239f94ce57af4a391cf408c41e9c7cb833ec01af447677cc23cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for email_simplified-0.1.1.tar.gz:

Publisher: publish.yaml on davidism/email-simplified

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

File details

Details for the file email_simplified-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for email_simplified-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7df70ffc92a5a0b4365659ef1eadc8c3daa3d3f41d5c6c791cfdfb77d8e5efa0
MD5 6724fdd9da70c2b3c96ad9b060214bad
BLAKE2b-256 c90bb44cb3d7071cd9fde370bf84d17c05d371c3551166d6fa5322b8a19c6f3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for email_simplified-0.1.1-py3-none-any.whl:

Publisher: publish.yaml on davidism/email-simplified

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