mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
9 lines
266 B
Ruby
9 lines
266 B
Ruby
class InvoiceMailer < ApplicationMailer
|
|
def invoice_email(invoice, pdf)
|
|
return if whitelist_blocked?(invoice.billing_email)
|
|
|
|
@invoice = invoice
|
|
attachments[invoice.pdf_name] = pdf
|
|
mail(to: format(invoice.billing_email), subject: invoice)
|
|
end
|
|
end
|