Class: Spool10203SubmissionsReportMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- Spool10203SubmissionsReportMailer
- Defined in:
- app/mailers/spool10203_submissions_report_mailer.rb
Constant Summary collapse
- REPORT_TEXT =
'10203 spool submissions report'
Instance Method Summary collapse
Instance Method Details
#build(report_file) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/mailers/spool10203_submissions_report_mailer.rb', line 8 def build(report_file) url = Reports::Uploader.get_s3_link(report_file) opt = {} opt[:to] = if FeatureFlipper.staging_email? Settings.reports.spool10203_submission.staging_emails.dup else Settings.reports.spool10203_submission.emails.dup end mail( opt.merge( subject: REPORT_TEXT, body: "#{REPORT_TEXT} (link expires in one week)<br>#{url}" ) ) end |