It turns out that this only affects this particular Mailer, without changing ActionMailer::Base globally.
class SomeMailer < ActionMailer::Base self.delivery_method = :high_priority def some_email(params) end end
You can also do this (warning: will affect all instances of AnotherMailer ) if you have an instance up:
mail = AnotherMailer.whatever_email mail.delivery_handler.delivery_method = :something_else
They do not seem to be documented, but work.
source share