Created
September 11, 2015 21:51
-
-
Save stephen-puiszis/2939974de7a7d684435c to your computer and use it in GitHub Desktop.
Rails 4.x - The proper way to send emails in development environments using gmail SMTP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.action_mailer.default_url_options = { host: "localhost:3000" } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
address: "smtp.gmail.com", | |
port: 587, | |
domain: "domain.com", | |
user_name: "[email protected]", | |
password: "password", | |
authentication: :login, | |
enable_starttls_auto: true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment