ActionMailer
From DreamHost
Action Mailer is used by Ruby On Rails to easily send or receive emails from with in your Rails application.
More on how to use Action Mailer can be read Here
To configure Action mailer to work with a dream host account add this configuration to your environment.rb file:
Rails::Initializer.run do |config|
# Your application configuration
...
# configure action_mailer
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => 'mail.your.domain',
:port => 587,
:domain => 'your.domain',
:authentication => :login,
:user_name => 'username@your.domain',
:password => 'password'
}
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.default_charset = 'utf-8'
end
Action mailer 2.2.2 has a bug that prevents sending mail via ssl connection from dream host servers. If your production.log file contains error message "hostname was not match with the server certificate" then try changing :address key in smtp_settings.
Previous directions included checking the mail server under your account status from the web panel. These were incorrect. The address in the smtp_settings should be: mail.your.domain.

