Guest User

Untitled

a guest
Nov 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. code can go in env file or a file in config
  2.  
  3. ```ruby
  4. config.action_mailer.delivery_method = :smtp
  5. config.action_mailer.smtp_settings = {
  6. address: "smtp.gmail.com",
  7. port: 587,
  8. domain: "example.com",
  9. authentication: "plain",
  10. enable_starttls_auto: true,
  11. user_name: ENV["MAIL_USERNAME"],
  12. password: ENV["MAIL_PASSWORD"]
  13. }
  14. config.action_mailer.default_url_options = { host: "localhost:3000" }
  15.  
  16. ```
Add Comment
Please, Sign In to add comment