Skip to content

Instantly share code, notes, and snippets.

@schesnowitz
Last active November 23, 2017 13:16
Show Gist options
  • Save schesnowitz/80458d4fd176de466d1f78f8f731284c to your computer and use it in GitHub Desktop.
Save schesnowitz/80458d4fd176de466d1f78f8f731284c to your computer and use it in GitHub Desktop.
Mailer Configuration
   config.action_mailer.delivery_method = :smtp
     config.action_mailer.smtp_settings = {
       address: "smtp.gmail.com",
       port: 587,
       domain: "example.com",
       authentication: "plain",
       enable_starttls_auto: true,
       user_name: ENV["MAIL_USERNAME"], 
       password: ENV["MAIL_PASSWORD"]  
     } 
    config.action_mailer.default_url_options = { host: "localhost:3000" }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment