Class: PaymentReminderMailer
- Inherits:
-
DmCore::SiteMailer
- Object
- DmCore::SiteMailer
- PaymentReminderMailer
- Defined in:
- app/mailers/payment_reminder_mailer.rb
Instance Method Summary collapse
-
#payment_reminder(registration) ⇒ Object
——————————————————————————.
Instance Method Details
#payment_reminder(registration) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/mailers/payment_reminder_mailer.rb', line 10 def payment_reminder(registration) account = registration.account @subject = I18n.t('ems.ticket_payment_reminder_subject', value: registration.workshop.title) @recipients = registration.email @registration = registration @payment_owed = registration.payment_owed.format @payment_link = registration.payment_url headers = { "Reply-To" => account.preferred_smtp_from_email, "Return-Path" => account.preferred_smtp_from_email } mail(to: @recipients, subject: @subject, theme: account.account_prefix, bcc: account.preferred_archive_email, template_path: 'layouts/email_templates', template_name: 'dm_event_payment_reminder') end |