Skip to content

Instantly share code, notes, and snippets.

@stephen-puiszis
Created September 11, 2015 21:51
Show Gist options
  • Save stephen-puiszis/2939974de7a7d684435c to your computer and use it in GitHub Desktop.
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
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