Guest User

Untitled

a guest
Oct 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # Setup ActionMailer to work with SendGrid on Heroku Cedar Stack
  2. ## Add sendgrid keys heroku config environment
  3. ## heroku config:add SENDGRID_USERNAME=<YOUR_KEY>
  4. ActionMailer::Base.smtp_settings = {
  5. :address => 'smtp.sendgrid.net',
  6. :port => '587',
  7. :authentication => :plain,
  8. :user_name => ENV['SENDGRID_USERNAME'],
  9. :password => ENV['SENDGRID_PASSWORD'],
  10. :domain => 'pickgrapevine.com'
  11. }
  12. ActionMailer::Base.delivery_method = :smtp
Add Comment
Please, Sign In to add comment