Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

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.

Leave a Reply