Envelopes is a tiny library I wrote to make working with Python’s email and smptlib packages simple and fun.
Envelopes abstracts all the weird stuff about Python’s outgoing e-mail tools and makes composing and sending e-mails simple. It supports all the features you’d expect it to support - long and short e-mail addresses, text and HTML bodies, CC and BCC fields, standard and custom headers, file attachments and charsets. Envelopes can be used in Web apps, queue workers and pretty much anywhere you’d use email and smptlib to send e-mails.
Just look at the following example:
All the dirty work is done for you :).
Install it with the usual:
Discuss this post on Reddit.