Class: Ch31SubmissionsReportMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- Ch31SubmissionsReportMailer
- Defined in:
- app/mailers/ch31_submissions_report_mailer.rb
Constant Summary collapse
- REPORT_TEXT =
'Chapter 31 Submissions Report'
Instance Method Summary collapse
Instance Method Details
#build(submitted_claims) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/mailers/ch31_submissions_report_mailer.rb', line 8 def build(submitted_claims) opt = {} opt[:to] = Settings.veteran_readiness_and_employment.daily_report.emails.dup @submitted_claims = submitted_claims @total = submitted_claims.size template = File.read('app/mailers/views/ch31_submissions_report.html.erb') mail( opt.merge( subject: REPORT_TEXT, body: ERB.new(template).result(binding) ) ) end |