mattupstate/flask-mail — pull request #23 by aaronsw (2012-10-07 13:41:27+00:00)
Title: Add automatic support for Sendgrid on Heroku

Sendgrid on Heroku automatically sets environment variables for SMTP sending. This patch checks to see if they're set (and if the normal Flask config _isn't_ set) and then uses those automatically. This means that flask-mail "just works" on the standard Heroku setup, which I find nice.