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

View file

@ -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 %>

View file

@ -1 +1,5 @@
You have a new invoice text
<%= t('you_have_a_new_invoice') %>
<%= t('sincerely') %>,
<%= Setting.eis_invoice_contact %>
<%= @invoice.seller_phone %>

View file

@ -4,7 +4,6 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>EIS</h1>
<%= yield %>
</body>
</html>

View file

@ -1,2 +1 @@
this is email text layout
<%= yield %>

View file

@ -729,3 +729,5 @@ en:
invoice_forwared: 'Invoice forwarded'
failed_to_forward_invoice: 'Failed to forward invoice'
client: 'Client'
you_have_a_new_invoice: 'You have a new invoice.'
sincerely: 'Sincerely'