Configuring your action mailer settings just got a little tweak that you’re going to want to pay attention to, especially if you’re running off edge. Instead of using ActionMailer::Base.server_settings you’re going to want to use ActionMailer::Base.smtp_settings. The syntax remains the same, it’s just a name change:
1 2 3 4 5 6 7 |
ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.mymailserver.com", :authentication => :login, :user_name => "me", :password => "password" } |
In the 1-2-stable rails branch the use of server_settings has been deprecated, while over in edge it’s been renamed outright and you’ll need to update your usage.
Also in the same update is the ability to specify your sendmail executable location and command line arguments options with the new ActionMailer::Base.sendmail_settings (if you’re using sendmail):
1 2 3 4 5 |
ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.sendmail_settings = { :location => '/usr/sbin/sendmail', :arguments => '-i -t' } |
See the ActionMailer::Base api for further option details.
tags: rubyonrails, rails

Agreed. I’ve had numerous instances where an ActionMailer layout would have been helpful.
Thanks. Found this off google. Fixed one of my upgrade woes :)
me too. thanks =)
Me too – many thanks!
Helped a bunch—thanks! :)
Actionmailer does have the ability to use templates. See recipe 9.3 “Formating Email Messages Using Templates” in the Orielly Rails CookBook
Thanks Ryan,
It helped me solve my problem.
Cheers
Cass
thanks ryan… very useful info..
great stuff, bro. I found this on google too, solves my problem. thanks
@lee – joost is talking about layouts, wrappers that could be used for all emails. The templates discussed in recipe 9.3 in the Rails Cookbook just talks about the views – the output that’s unique per email. The recipe is about a half a page long and meant for new rails devs.