Class: CreateStagingSpoolFilesMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- CreateStagingSpoolFilesMailer
- Defined in:
- app/mailers/create_staging_spool_files_mailer.rb
Instance Method Summary collapse
Instance Method Details
#build(contents) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/mailers/create_staging_spool_files_mailer.rb', line 6 def build(contents) date = Time.zone.now.strftime('%m%d%Y') opt = {} opt[:to] = Settings.edu.staging_spool_contents.emails.dup note_str = '*** note: to see in the correct format, right-click on the contents and select "View Source" ***' mail( opt.merge( subject: "Staging Spool file on #{date}", body: "The staging spool file for #{date} #{note_str}\n\n\n#{contents}" ) ) end |