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
Links
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d73940d8bb295595024bd23f933d27349fb109b0f502299836b74b95360b7dd
|
|
| MD5 |
e994b0444a6982f9047f6a9b754e20c9
|
|
| BLAKE2b-256 |
c6a1b8416508d625ecd2badd1dc7b13a1112e7d9762c9370fcbacf3f772e5af0
|
Provenance
The following attestation bundles were made for emails-1.0.2.tar.gz:
Publisher:
python-publish.yml on lavr/python-emails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emails-1.0.2.tar.gz -
Subject digest:
3d73940d8bb295595024bd23f933d27349fb109b0f502299836b74b95360b7dd - Sigstore transparency entry: 1205607934
- Sigstore integration time:
-
Permalink:
lavr/python-emails@b8a0fbf97b6cbd7b03fc37c47657c6f6f0d53778 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/lavr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b8a0fbf97b6cbd7b03fc37c47657c6f6f0d53778 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
622d6b69f5f1a386bcd1df007b726822b0589804a23dbbdb80a2562c2c297ca2
|
|
| MD5 |
14091128e4b8ed1754a5f6936981d807
|
|
| BLAKE2b-256 |
2164e8c6800dc6377676ab44186054acd7e56d5c38181d61d5ffaf2912024ad9
|
Provenance
The following attestation bundles were made for emails-1.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on lavr/python-emails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emails-1.0.2-py3-none-any.whl -
Subject digest:
622d6b69f5f1a386bcd1df007b726822b0589804a23dbbdb80a2562c2c297ca2 - Sigstore transparency entry: 1205607943
- Sigstore integration time:
-
Permalink:
lavr/python-emails@b8a0fbf97b6cbd7b03fc37c47657c6f6f0d53778 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/lavr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b8a0fbf97b6cbd7b03fc37c47657c6f6f0d53778 -
Trigger Event:
release
-
Statement type: