NO HTML e-mails when using email_invoice_notice template
Hi,
I want to add a logo and apply some HTML formatting to the invoice notification emails cfr. http://help.cashboardapp.com/discussions/document-templates/140-adding-a-logo
However, the emails are sent in plain text iso. HTML and the logo doesn't show.
The content-type is also text/plain...
I tried adding <html></html> tags, but it doesn't change the behavior.
What am I doing wrong? See source & result below:
This is the content of the template:
============================================
{{ 'logokl.gif' | image_tag }}
Geachte klant,
Dit is een automatisch gegenereerd bericht en bevat een factuur voor bewezen diensten of geleverde materialen.
{% if message != blank %}
Opmerking:
------------------------------
{{ message }}
------------------------------
{% endif %}
Details:
Factuur nummer: {{ invoice.number }}
Factuur bedrag: {{ invoice.total | format_money }}
Verschuldigd : {{ invoice.balance | format_money }}
Vervaldag : {{ invoice.due_date | format_date }}
Bekijk dit factuur on-line: {{ invoice | get_email_link_for: contact }}
(Deze link blijft slechts 14 dagen geldig)
============================================
And this is the e-mail text (note: No HTML and no image)
============================================
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=mimepart_54c8fd51ed4c8_2dda..fdadab34e19e
--mimepart_54c8fd51ed4c8_2dda..fdadab34e19e
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
## REPLY ABOVE THIS LINE to comment via email ##
Geachte klant,
Dit is een automatisch gegenereerd bericht en bevat een factuur voor bewezen diensten of geleverde materialen.
Details:
Factuur nummer: 2015-001
Factuur bedrag: 1.211,09 €
Verschuldigd : 1.211,09 €
Vervaldag : 27-02-2015
Bekijk dit factuur on-line: https://MakeITWorkbe.cashboardapp.com/provider/invoices/show/2015-001
(Deze link blijft slechts 14 dagen geldig)
============================================
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Seth B on 28 Jan, 2015 05:15 PM
Stef,
Sorry but what you're trying to accomplish is impossible. More than likely emails will always be sent plaintext. People have enough trouble with our HTML invoice templates. If I make the email templates HTML as well I'm sure we'll have a lot more support requests and issues with people trying to customize them.
Seth B closed this discussion on 28 Jan, 2015 05:15 PM.
Stef Andries re-opened this discussion on 28 Jan, 2015 05:18 PM
2 Posted by Stef Andries on 28 Jan, 2015 05:18 PM
Seth, thanks for you quick reply and a pity but no disaster.
Admin the related topic is a bit misleading? :-) One might assume it is possible to include an image...
http://help.cashboardapp.com/discussions/document-templates/140-adding-a-logo
Stef
Support Staff 3 Posted by Seth B on 28 Jan, 2015 05:19 PM
You can add a logo, but only to the html_ templates.
The email templates aren’t HTML. Don’t see how this is misleading?
4 Posted by Stef Andries on 28 Jan, 2015 05:36 PM
Seth,
Steven was referring to "email_invoice_notice" in his question (also the string I searched for :-) )...
Anyway, not a problem :-)
Stef