Monday, January 14, 2013

Using Sendgrid on Heroku with Django

If you'd like to send emails easily within your Django application on Heroku, you may use Sendgrid.Here are the steps: 1) Activate Sendgrid: heroku addons:add sendgrid:starter. 2) Your credentials will be listed when you type "heroku config" in SENDGRID_PASSWORD and SENDGRID_USERNAME sections. 2) Do the following configurations: heroku config:add EMAIL_HOST='' heroku config:add EMAIL_HOST_USER='username_provided_above' heroku config:add EMAIL_HOST_PASSWORD='password_provided_above' and set DEFAULT_FROM_EMAIL as something like ''. These can be done in either in or as heroku config (like above). These should be sufficient for email sending.

No comments: