Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Rails.application.configure do
  2. config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
  3. config.action_mailer.delivery_method = :smtp
  4. config.action_mailer.perform_deliveries = true
  5.  
  6. # more codes
  7.  
  8. end
  9.  
  10. development:
  11. SENDGRID_USERNAME: something@heroku.com
  12. SENDGRID_PASSWORD: something
  13.  
  14. ActionMailer::Base.smtp_settings = {
  15. address: 'smtp.sendgrid.net',
  16. port: '587',
  17. authentication: :plain,
  18. user_name: ENV['SENDGRID_USERNAME'],
  19. password: ENV['SENDGRID_PASSWORD'],
  20. domain: 'heroku.com',
  21. enable_starttls_auto: true
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement