Ok, here is one more thing for those who are used to the pre Rails 2.0 days.
When setting up the ActionMailer in your environment.rb, you will need to make a slight adjustment with the syntax.
Previously the code looked like this:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => “mail.langorang.com”,
:port => 25,
:domain => “langorang.com”,
:authentication => :login,
:user_name => “no-reply@langorang.com”,
:password => “**************”,
}
Now it looks like this (notice the bold)
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings= {
:address => “mail.envion.com”,
:port => 25,
:domain => “envion.com”,
:authentication => :login,
:user_name => no-reply@envion.com”,
:password => “*********”,
}
server_settings need to be changed to smtp_settings. I know it is minor but it will give ya real fits if you are trying to install simple captcha in a rails 2.0 environment.
Posted in ruby, ruby on rails, tips | Tags: ActionMailer, mail, rails 2.0, ruby on rails