Errno::ECONNREFUSED: Connection refused - connect(2) for action mailer
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been working with rails since a long. Now I am facing a small issue in the ActionMailer. I want to send an email when user gets registered to confirm his registration. I am able to send email in the development mode but where as not in the production mode. the exception Errno::ECONNREFUSED: Connection refused - connect(2) is coming everytime when deliver method is called. I have written the following code. My SMTP config looks: config.action_mailer.default_url_options = { :host => "localhost:3000" } config.action_mailer.delivery