Sha256: cc3e4aff2f13d37f6547902af373ab211a9a7cae72a5af03d89ac31d3f100590
Contents?: true
Size: 1.04 KB
Versions: 16
Compression:
Stored size: 1.04 KB
Contents
class PaymentReminderMailer < DmCore::SiteMailer helper DmCore::LiquidHelper helper DmCore::UrlHelper helper DmCore::AccountHelper layout 'email_templates/dm_event_email_layout' #------------------------------------------------------------------------------ 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 end
Version data entries
16 entries across 16 versions & 1 rubygems