-
-
Save veganstraightedge/7e0eb28079d3b70b8cacc6cbc8e0f38c to your computer and use it in GitHub Desktop.
Rails 5.1.1 mail SMTP config
This file contains 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
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