Skip to content

Instantly share code, notes, and snippets.

@ivan22
Forked from qcam/heroku-config-sendgrid.md
Created May 17, 2014 02:46
Show Gist options
  • Select an option

  • Save ivan22/58306be0a1241405f1ef to your computer and use it in GitHub Desktop.

Select an option

Save ivan22/58306be0a1241405f1ef to your computer and use it in GitHub Desktop.

Heroku Mailer (SendGrid) configuration steps

  • Go to your heroku application.

  • Add SendGrid addons

  • Config STMP settings to your config/environment.rb

ActionMailer::Base.smtp_settings = {
  :address        => 'smtp.sendgrid.net',
  :port           => '587',
  :authentication => :plain,
  :user_name      => ENV['SENDGRID_USERNAME'],
  :password       => ENV['SENDGRID_PASSWORD'],
  :domain         => 'heroku.com',
  :enable_starttls_auto => true
}
  • Restart Heroku
heroku restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment