Guest User

Untitled

a guest
Jul 16th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. config.action_mailer.raise_delivery_errors = true
  2. config.action_mailer.perform_deliveries = true
  3.  
  4. config.action_mailer.default_url_options = { :host => 'mydomain.com' }
  5.  
  6. ActionMailer::Base.smtp_settings = {
  7. :address => "smtp.gmail.com",
  8. :port => 587,
  9. :domain => "mydomain.com",
  10. :user_name => "info",
  11. :password => "secret",
  12. :authentication => "plain",
  13. :enable_starttls_auto => true
  14. }
  15.  
  16. config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
  17.  
  18. config.mailer_sender = "info@mydomain.com"
  19.  
  20. config.action_mailer.default_url_options = { :host => 'localhost:3000' }
  21. ActionMailer::Base.smtp_settings = {
  22. :address => "smtp.gmail.com",
  23. :port => 587,
  24. :domain => "gmail.com",
  25. :user_name => "myinfo@gmail.com",
  26. :password => "secret",
  27. :authentication => "plain"
  28. # :enable_starttls_auto => true # I don't have this, but it should work anyway
  29. }
  30.  
  31. class UserMailer < ActionMailer::Base
  32. default :from => "myinfo@gmail.com"
  33. # ...
  34. end
Add Comment
Please, Sign In to add comment