A sample Gist mailer built on Rails, Postgres, SendGrid and hosted on Heroku.