Skip to content

Instantly share code, notes, and snippets.

@veganstraightedge
Last active June 23, 2017 04:34
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/386a55f1b6aaff6905b2fc5a95c63917 to your computer and use it in GitHub Desktop.
Save veganstraightedge/386a55f1b6aaff6905b2fc5a95c63917 to your computer and use it in GitHub Desktop.
FATAL -- : SocketError (getaddrinfo: Name or service not known):
unless Rails.env.test?
ActionMailer::Base.smtp_settings = {
port: 465,
address: "smtp.hubapi.com",
user_name: ENV["SMTP_USERNAME"],
password: ENV["SMTP_PASSWORD"],
domain: "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