Quantcast
Channel: Master Ruby/Rails Programming
Viewing all articles
Browse latest Browse all 25

Errno::ECONNREFUSED: Connection refused - connect(2)

$
0
0
Errno::ECONNREFUSED: Connection refused - connect(2)

If you get this error, one of the reason could be incorrect or no ActionMailer settings. The following structure needs to be present in your production.rb (or whatever config file):

ActionMailer::Base.smtp_settings = {
:address =>'smtp.gmail.com',
:port => 587,
:domain =>'mydomain.com',
:authentication => :plain,
:user_name =>'user@mydomain.com',
:password =>'password'
}

Viewing all articles
Browse latest Browse all 25

Trending Articles