Skip to main content

Mailing for human beings

Project description

https://travis-ci.org/virusdefender/envelopes.png?branch=master

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, smtps=False)

# 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.

Author

Envelopes is developed by Tomasz Wójcik.

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.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EnvelopesWithSMTPS-0.4.tar.gz (24.4 kB view details)

Uploaded Source

File details

Details for the file EnvelopesWithSMTPS-0.4.tar.gz.

File metadata

File hashes

Hashes for EnvelopesWithSMTPS-0.4.tar.gz
Algorithm Hash digest
SHA256 e519e2f99359b725d44ce62a1e42c609375d47ac5b9187d02d31be6b52858af8
MD5 7c638eef56164c7218ea143b5bfb2e71
BLAKE2b-256 9cd3dda578045ec4db300e1e5f37d9f4d3669345323b170171b9ab8297d5b45f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page