Configuring ActionMailer to send email using Dreamhost
This is for all those dreamhosters out there. It took me a couple of tries to set up ActionMailer to send emails through my dreamhost account. Hopefully this will save someone some time. This is what I have in my environments/development.rb config file:
# ActionMailer settings for dreamhostThe are two things to note.
config.action_mailer.delivery_method = :smtp
config.action_mailer.server_settings = {
:domain => "mail.ankur.org",
:address => "mail.ankur.org",
:port => 25,
:user_name => "m0000000",
:password => "password",
:authentication => :login
}
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_charset = "utf-8"
1. your username is your mailbox name. This is that weird number that dreamhost generates for you and starts with an “m”
2. The domain and address had to be the same, and set to the outgoing mailserver, e.g. mail.yourserver.com. In theory, this should not have to be, but these are the settings that worked for me.
