Class: Totalizer::ActionMailerNotifier

Inherits:
EmailNotifier show all
Defined in:
lib/totalizer/notifier/action_mailer_notifier.rb

Constant Summary

Constants inherited from EmailNotifier

EmailNotifier::DEFAULT_OPTIONS

Class Method Summary collapse

Methods inherited from EmailNotifier

call

Class Method Details

.send(body, options) ⇒ Object



3
4
5
# File 'lib/totalizer/notifier/action_mailer_notifier.rb', line 3

def self.send body, options
  ActionMailer::Base.mail(from: options[:from], to: options[:to], subject: options[:subject], body: body).deliver_now
end