Improve email template

This commit is contained in:
Martin Lensment 2015-04-22 15:18:50 +03:00
parent 595f81a707
commit a99d36f683
6 changed files with 14 additions and 4 deletions

View file

@ -5,6 +5,8 @@ class InvoiceMailer < ApplicationMailer
return unless test_emails.include?(invoice.billing_email)
end
@invoice = invoice
attachments[invoice.pdf_name] = pdf
mail(to: invoice.billing_email, subject: invoice)
end