Class: Spree::ReportMailer

Inherits:
BaseMailer
  • Object
show all
Defined in:
app/mailers/spree/report_mailer.rb

Instance Method Summary collapse

Methods inherited from BaseMailer

#from_address, #frontend_available?, #mail, #money, #reply_to_address

Instance Method Details

#report_done(report) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'app/mailers/spree/report_mailer.rb', line 3

def report_done(report)
  @report = report

  mail(
    to: @report.user.email,
    subject: Spree.t('report_mailer.report_done.subject', report_name: @report.human_name).to_s,
    from: from_address,
    reply_to: reply_to_address
  )
end