Drew's py Factory

Drew Tempelmeyer's Python libraries and scripts


postageapp.py

postageapp.py is a library for sending emails using PostageApp. Use of this library requires a PostageApp account.

Note: This does not yet support attachments or templates.

How to Use

Using postageapp.py is simple. Your code would look similar to:

from postageapp import PostageApp
papp = PostageApp('apikeyhere')
papp.send_message(recipients='someone@someplace.com', from_email='youremail@address.com', subject='Oh, hello', content={ 'text/plain': 'Test email' })

However, if you wish to send to multiple recipients, convert recipients to a tuple

...recipients=('userone@someplace.com', 'usertwo@someplace.com')...

Download

Download postageapp.py

Questions, Comments, Donations?

Follow me on Twitter and let me know.