Sha256: 699d15629feb96bad56b768dcc63d54b72c0664a32a1ca6237f8ed09fc1b76f4
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 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.pdf_file.read mail( :to => invoice.customer.email, :cc => sender.email, :reply_to => sender.email, :subject => subject, :body => body, ) end end
Version data entries
4 entries across 4 versions & 1 rubygems