Skip to content

Instantly share code, notes, and snippets.

@gonzedge
Created November 11, 2011 01:32
Show Gist options
  • Save gonzedge/1356871 to your computer and use it in GitHub Desktop.
Save gonzedge/1356871 to your computer and use it in GitHub Desktop.
Rails 3.1 smtp gmail Errno::ECONNREFUSED Connection refused
Demo::Application.configure do
# ...
config.action_mailer.delivery_method :smtp
config.action_mailer.smtp_settings = {
enable_starttls_auto: true,
address: 'smtp.gmail.com',
port: 587,
authentication: 'plain',
user_name: '<[email protected]>',
password: '<password>'
}
# ...
end
Demo::Application.configure do
# ...
config.action_mailer.delivery_method :smtp
config.action_mailer.smtp_settings = {
enable_starttls_auto: true,
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
authentication: 'plain',
user_name: '<[email protected]>',
password: '<password>'
}
# ...
end
Errno::ECONNREFUSED in TestController#create
Connection refused - connect(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment