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

Version Path
dm_event-4.2.3.10 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.9 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.8 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.7 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.6 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.5 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.4 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.3 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.2 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3.1 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.3 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.2.3 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.2.2 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.2.1 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.2 app/mailers/payment_reminder_mailer.rb
dm_event-4.2.1.5 app/mailers/payment_reminder_mailer.rb