Skip to content

Instantly share code, notes, and snippets.

@qcam
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save qcam/04cd849b59a71a7a6107 to your computer and use it in GitHub Desktop.
Save qcam/04cd849b59a71a7a6107 to your computer and use it in GitHub Desktop.
Mailer Configuration on Heroku

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