Class: EOTS::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/eots/mailer.rb

Instance Method Summary collapse

Instance Method Details

#email(msg) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/mailers/eots/mailer.rb', line 2

def email(msg)
  mail(from: msg.from,
       to: msg.to,
       cc: msg.cc,
       bcc: msg.bcc,
       reply_to: msg.reply_to,
       subject: msg.values[:subject],
       body: msg.body)
end