Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1287ef8b8d
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.498 kb
# ActionMailer::Base.delivery_method = :restful
require 'actionmailer'
class ActionMailer::RestfulMailer < ActionMailer::Base
@@email_class = RestfulEmail::Email
def self.email_class
@@email_class
end
def self.email_class=(klass)
@@email_class = klass
end
def perform_delivery_restful(mail)
mail.destinations.each do |destination|
@@email_class.create :body => mail.encoded, :to => destination,
:from => mail.from.first
end
end
end
Jump to Line
Something went wrong with that request. Please try again.