Guest User

Untitled

a guest
Apr 14th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. # Add the following to dependencies.rb
  2. dependency "ambethia-smtp-tls", "1.1.2", :require_as => "smtp-tls" # enables TLS for Net::SMTP
  3.  
  4. # Add the following inside the before_app_loads block in init.rb
  5. # (also make sure to overwrite it for your development.rb and test.rb environments using
  6. # Merb::Mailer.delivery_method = :test_send)
  7. Merb::BootLoader.after_app_loads do
  8.  
  9. # Configure Merb Mailer
  10. Merb::Mailer.config = {
  11. :host => AppConfig.smtp.host,
  12. :port => AppConfig.smtp.port,
  13. :user => AppConfig.smtp.user,
  14. :pass => AppConfig.smtp.pass,
  15. :auth => AppConfig.smtp.auth,
  16. :domain => AppConfig.smtp.domain
  17. }
  18. end
  19.  
  20. # AppConfig is a gem that makes it easy to set site wide variables
  21. # in merb depending on the environment.
  22. # Add it to your dependencies
  23. dependency "merb_app_config", "1.0.2"
  24.  
  25. # Set up the folder structure
  26. # config/app_config/settings.yml
  27. # config/app_config/development.yml
  28. # config/app_config/settings.yml <- use instead of production.yml
  29. # config/app_config/test.yml
  30.  
  31. # Setup your settings.yml file to look like this:
  32. smtp:
  33. host: smtp.gmail.com
  34. port: 587
  35. user: email@flossedtoday.com
  36. pass: password_here
  37. auth: :plain
  38. domain: missmint.com
Add Comment
Please, Sign In to add comment