Class: FailedClaimsReportMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/failed_claims_report_mailer.rb

Constant Summary collapse

RECIPIENTS =
%w[
  [email protected]
].freeze

Instance Method Summary collapse

Instance Method Details

#build(failed_uploads) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/mailers/failed_claims_report_mailer.rb', line 8

def build(failed_uploads)
  opt = {}
  opt[:to] = RECIPIENTS.clone

  @failed_uploads = failed_uploads
  template = File.read('app/mailers/views/failed_claims_report.erb')

  mail(
    opt.merge(
      subject: 'EVSS claims failed to upload',
      body: ERB.new(template).result(binding)
    )
  )
end