Class: ReportCard::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ReportCard::Mailer
- Defined in:
- app/mailers/report_card/mailer.rb
Instance Method Summary collapse
Instance Method Details
#report(url, email_options) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/mailers/report_card/mailer.rb', line 3 def report(url, ) @url = url @body = ['body'] || ReportCard.body # email_options['recipient_email'] doesn't have default option here # because it is a proc that is evaluated in ReportsController. mail to: ['recipient_email'], from: ['from_email'] || ReportCard.from_email, subject: ['subject'] || ReportCard.subject end |