Mailing for human beings.
About
Envelopes is a wrapper for Python’s email and smtplib modules. It aims to make working with outgoing e-mail in Python simple and fun.
Short example
from envelopes import Envelope, GMailSMTP
envelope = Envelope(
from_addr=(u'from@example.com', u'From Example'),
to_addr=(u'to@example.com', u'To Example'),
subject=u'Envelopes demo',
text_body=u"I'm a helicopter!"
)
envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg')
# Send the envelope using an ad-hoc connection...
envelope.send('smtp.googlemail.com', login='from@example.com',
password='password', tls=True)
# Or send the envelope using a shared GMail connection...
gmail = GMailSMTP('from@example.com', 'password')
gmail.send(envelope)
Features
Envelopes allows you to easily:
Provide e-mail addresses with or without name part.
Set text, HTML or both bodies according to your needs.
Provide any number of CC and BCC addresses.
Set standard (e.g. Reply-To) and custom (e.g. X-Mailer) headers.
Attach files of any kind without hassle.
Use any charset natively supported by Python’s unicode type in addresses, bodies, headers and attachment file names.
Project status
This project should be considered beta. Proceed with caution if you decide to use Envelopes in production.
Envelopes has been developed and tested with Python 2.7. Currently, Envelopes supports Python 2.6, 2.7 and 3.3.
License
Envelopes is licensed under the MIT License.
Source code and issues
Source code is available on GitHub at: tomekwojcik/envelopes.
To file issue reports and feature requests use the project’s issue tracker on GitHub.
Metadata
Release files for Envelopes 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Envelopes-0.4.tar.gz | 33.5 kB | Without provenance | Details |
Release files / Envelopes-0.4.tar.gz
| Download URL | Envelopes-0.4.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4a02b4dc21467794d3a646f946d99a8c5b3311b2df8e211f96ca9e0b838e7e0
|
|
BLAKE2b-256 checksum How to use checksums |
2eac0aaba34d717868729428bf4dca601c93cd6b0f9123894f2509911027b0dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Envelopes 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.