Send email via Postmark from Appengine

I’m trying out Postmarkapp in order to improve my email deliverability for a business I own. The API is dead simple and it only took about an hour to get integrated into my existing code. Below is a simple Python class that is a subclass of GAE’s EmailMessage class and allows you to send mail via Postmark instead of GAE’s built-in mail service.

Obviously, you need your own API key from Postmark. But, using this class you could easily just make a few changes to your existing appengine code and call, e.g. msg.pmsend() instead of msg.send() assuming you’re already using the EmailMessage class to build your outgoing emails. Oh…there’s no error handling yet obviously. Caveat emptor.