ActionMailer on Bluehost
Aug 21
I ran into my first MINOR problem with Bluehost this evening. It’s more of a Rails configuration problem than anything else. My ActionMailer class kept throwing the following error:
Errno::ECONNREFUSED (Connection refused – connect(2)):
In my environment.rb file I was using a fully qualified domain name for my ActionMailer settings. I decided to try localhost since I wanted to relay mail through the local machine that my app was running on. Everything worked perfectly and the config now looks like:
ActionMailer::Base.server_settings = {
:address => “localhost”,
:port => 25
}
Give that a try regardless of hosting provider if you’re receiving the error message mentioned above.
