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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604f82ab5ee31d97e60ed4840fcd62b3aabd865384aed4e682c0b9328f3b58f5
|
|
| MD5 |
c07208dc7f80c868489567a6d19d7679
|
|
| BLAKE2b-256 |
a56877a91490239f94ce57af4a391cf408c41e9c7cb833ec01af447677cc23cb
|
Provenance
The following attestation bundles were made for email_simplified-0.1.1.tar.gz:
Publisher:
publish.yaml on davidism/email-simplified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
email_simplified-0.1.1.tar.gz -
Subject digest:
604f82ab5ee31d97e60ed4840fcd62b3aabd865384aed4e682c0b9328f3b58f5 - Sigstore transparency entry: 1330613564
- Sigstore integration time:
-
Permalink:
davidism/email-simplified@4ecd5981b2765e351d0a7b458ae50faa7ead036d -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/davidism
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@4ecd5981b2765e351d0a7b458ae50faa7ead036d -
Trigger Event:
push
-
Statement type:
File details
Details for the file email_simplified-0.1.1-py3-none-any.whl.
File metadata
- Download URL: email_simplified-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df70ffc92a5a0b4365659ef1eadc8c3daa3d3f41d5c6c791cfdfb77d8e5efa0
|
|
| MD5 |
6724fdd9da70c2b3c96ad9b060214bad
|
|
| BLAKE2b-256 |
c90bb44cb3d7071cd9fde370bf84d17c05d371c3551166d6fa5322b8a19c6f3f
|
Provenance
The following attestation bundles were made for email_simplified-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on davidism/email-simplified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
email_simplified-0.1.1-py3-none-any.whl -
Subject digest:
7df70ffc92a5a0b4365659ef1eadc8c3daa3d3f41d5c6c791cfdfb77d8e5efa0 - Sigstore transparency entry: 1330613639
- Sigstore integration time:
-
Permalink:
davidism/email-simplified@4ecd5981b2765e351d0a7b458ae50faa7ead036d -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/davidism
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@4ecd5981b2765e351d0a7b458ae50faa7ead036d -
Trigger Event:
push
-
Statement type: