Class: Dorsale::BillingMachine::InvoiceMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- ApplicationMailer
- Dorsale::BillingMachine::InvoiceMailer
- Defined in:
- app/mailers/dorsale/billing_machine/invoice_mailer.rb
Instance Method Summary collapse
Instance Method Details
#send_invoice_to_customer(invoice, subject, body, sender = nil) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/mailers/dorsale/billing_machine/invoice_mailer.rb', line 2 def send_invoice_to_customer(invoice, subject, body, sender = nil) ["#{invoice.t}_#{invoice.tracking_id}.pdf"] = invoice.pdf_file.read mail( :to => invoice.customer.email, :cc => sender.email, :reply_to => sender.email, :subject => subject, :body => body, ) end |