class MultiNotifier::Middlewares::Mail
Attributes
delivery[RW]
from[RW]
html_body[RW]
subject[RW]
text_body[RW]
to[RW]
Public Instance Methods
notify()
click to toggle source
# File lib/multi_notifier/middlewares/mail.rb, line 29 def notify Mailer.delivery_method = delivery[:method] Mailer.send("#{delivery[:method]}_settings=", delivery[:settings] || {}) headers = { :from => from, :to => to, :subject => subject } mailer = Mailer.notificaiton(headers, text_body, html_body) mailer.deliver mailer end