Rails ActionMailer with multiple SMTP servers

前端 未结 11 1109
一整个雨季
一整个雨季 2020-12-13 06:19

I have a need to use two different smtp servers in a Rails application. It appears that the way ActionMailer is constructed, it is not possible to have different smtp_settin

11条回答
  •  盖世英雄少女心
    2020-12-13 07:15

    For anybody approaching this issue with later versions (3+) of Rails, try this

    http://guides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-dynamic-delivery-options

提交回复
热议问题