mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Improve email template
This commit is contained in:
parent
595f81a707
commit
a99d36f683
6 changed files with 14 additions and 4 deletions
|
@ -5,6 +5,8 @@ class InvoiceMailer < ApplicationMailer
|
||||||
return unless test_emails.include?(invoice.billing_email)
|
return unless test_emails.include?(invoice.billing_email)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@invoice = invoice
|
||||||
|
|
||||||
attachments[invoice.pdf_name] = pdf
|
attachments[invoice.pdf_name] = pdf
|
||||||
mail(to: invoice.billing_email, subject: invoice)
|
mail(to: invoice.billing_email, subject: invoice)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
You have a new invoice html
|
<%= t('you_have_a_new_invoice') %>
|
||||||
|
<br><br>
|
||||||
|
<%= t('sincerely') %>,<br>
|
||||||
|
<%= Setting.eis_invoice_contact %><br>
|
||||||
|
<%= @invoice.seller_phone %>
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
You have a new invoice text
|
<%= t('you_have_a_new_invoice') %>
|
||||||
|
|
||||||
|
<%= t('sincerely') %>,
|
||||||
|
<%= Setting.eis_invoice_contact %>
|
||||||
|
<%= @invoice.seller_phone %>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>EIS</h1>
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
this is email text layout
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
@ -729,3 +729,5 @@ en:
|
||||||
invoice_forwared: 'Invoice forwarded'
|
invoice_forwared: 'Invoice forwarded'
|
||||||
failed_to_forward_invoice: 'Failed to forward invoice'
|
failed_to_forward_invoice: 'Failed to forward invoice'
|
||||||
client: 'Client'
|
client: 'Client'
|
||||||
|
you_have_a_new_invoice: 'You have a new invoice.'
|
||||||
|
sincerely: 'Sincerely'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue