Friday, 9 March 2012

Setting up Sendgrid mail for Spree on Heroku

The free mailing functionality for Heroku is provided by, and allows your site to send up to 200 emails a day for no charge. Just perfect for my new low-traffic Spree e-commerce site that I've just built, but I did have some trouble working out to set it up. Here's how I got it working.

Firstly, enable Sendgrid on your Heroku app:
$ heroku addons:add sendgrid:starter
Then, run:
$ heroku config
this will reveal the SENDGRID_PASSWORD and SENDGRID_USERNAME values which you need for the next step:
Now go to the Configuration pages in your Spree admin interfaces and add a new mail method. Take a look at this screenshot to see what settings I used:

1 comment:

  1. Note that you now need to select 'plain' smtp auth type instead of 'login', per sendgrid docs.

    Thanks for this post.


Comments are moderated, so you'll have to wait a little bit before they appear!