mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
f4f76772fb5c25357a54baaa9cd20f7e9a1cd653
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.delivery_method = ActionMailer::DeliveryMethod::Smtp
we could equally set our own custom object
as long as it provides the instance method :perform_delivery(mail)
eg.
class MySmsDeliveryMethod
def perform_delivery(mail)
Sms.send(mail['to'], mail['body'])
end
end
MySmsMailer.delivery_method = MySmsDeliveryMethod.new
Signed-off-by: José Valim <jose.valim@gmail.com>
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%