Skip to main content

Mailing for human beings

Project description

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

envelope = Envelope(
    from_addr=u'from@example.com',
    from_name=u'From Example',
    to_addr=u'to@example.com',
    to_name=u'To Example',
    subject=u'Envelopes demo',
    text_body=u"I'm a helicopter!"
)
envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg')
envelope.send('smtp.googlemail.com', login='from@example.com',
              password='password', tls=True)

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 is the first public release of the code. It was extracted from a few minor production apps.

Envelopes has been developed and tested with Python 2.7. Tests for other versions will follow shortly after the release.

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


Download files

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

Source Distribution

Envelopes-0.1.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file Envelopes-0.1.tar.gz.

File metadata

  • Download URL: Envelopes-0.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Envelopes-0.1.tar.gz
Algorithm Hash digest
SHA256 997b62f6fb15a32d04ef777ac5ea6e13ab5d06771c176415a231d45d8d05939a
MD5 690dd1397e3622c15171b55c760b8bcf
BLAKE2b-256 a9e03bc9688b97a9fcac5e92f0f39b931e38fd24b2c68f4f7bf34f2d4f0562df

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