Skip to content

Instantly share code, notes, and snippets.

@veganstraightedge
Created June 13, 2017 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veganstraightedge/7e0eb28079d3b70b8cacc6cbc8e0f38c to your computer and use it in GitHub Desktop.
Save veganstraightedge/7e0eb28079d3b70b8cacc6cbc8e0f38c to your computer and use it in GitHub Desktop.
Rails 5.1.1 mail SMTP config
unless Rails.env.test?
ActionMailer::Base.smtp_settings = {
port: "465",
address: "smtp.hubapi.com",
user_name: ENV["SMTP_USERNAME"],
password: ENV["SMTP_PASSWORD"],
domain: "notify.happily.io",
authentication: :plain
}
ActionMailer::Base.delivery_method = :smtp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment