Skip to main content

Mailing for human beings

Project description

https://travis-ci.org/vamega/envelopes.svg?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)

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

Download files

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

Source Distribution

tctc_envelopes-0.5.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

tctc_envelopes-0.5-py2.py3-none-any.whl (18.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tctc_envelopes-0.5.tar.gz.

File metadata

  • Download URL: tctc_envelopes-0.5.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tctc_envelopes-0.5.tar.gz
Algorithm Hash digest
SHA256 d0211292814c577250cc6b0417d72f230f0f1e3f77c216069bf36735482438e5
MD5 1bfdbc0e0584cea29e918ab77f7caae0
BLAKE2b-256 ee6372cf2dc007c11f53aca106f50221df9a4c2049b4baf588cb210c452592c4

See more details on using hashes here.

File details

Details for the file tctc_envelopes-0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tctc_envelopes-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc95c35ab8113cef4f5a8b56165975f31f9db220c36a99c6f5677089fb61c54f
MD5 82d94ef6795f3a3f1a9a097306b8d326
BLAKE2b-256 7cb0a37a20de2c746af6bf3427f61ebf521a7a6ee700c4c49857f3b77d53f09a

See more details on using hashes here.

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