views:

11

answers:

1

Hi all,

I need some of my emails to go using "smtp" and some others using "sendmail". Is there a clean way to switch between delivery methods depending on the mailer method?

Thanks!

+1  A: 

You just need to define it with his configuration

ActionMailer::Base.delivery_method = :sendmail

And in other part of your app :

ActionMailer::Base.delivery_method = :smtp
shingara
Tried exactly that and it worked. Thanks anyway shingara!
Vinay