Sha256: f51740a6856df7e20d4a9d0ceb09af95d6f80d09fdbe71868477d1ec0d39a117

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

class Dorsale::BillingMachine::InvoiceMailer < ::Dorsale::ApplicationMailer
  def send_invoice_to_customer(invoice, subject, body, sender = nil)
    attachments["#{invoice.t}_#{invoice.tracking_id}.pdf"] = invoice.to_pdf

    mail(
      :to       => invoice.customer.email,
      :cc       => sender.email,
      :reply_to => sender.email,
      :subject  => subject,
      :body     => body,
    )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.3.0 app/mailers/dorsale/billing_machine/invoice_mailer.rb
dorsale-3.2.0 app/mailers/dorsale/billing_machine/invoice_mailer.rb