forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.66k stars 339 forks source link

Subject encoding problem with french characters #387

Closed marvinfretly closed 4 years ago

marvinfretly commented 4 years ago

Hello,

I'm creating mails using email-templates ans marko as a template engine. So I've to create a file named subject.marko. Everything is going great but when I there is accent in my subject.marko, it got encoding problem and it look like that: Subject: =?UTF-8?Q?Demande_d=27une_revued=27activit=C3=A9?= When the file look like: -- Demande d'une revue d'activité

How is it possible to get the good encoding for my subject with accent? I tried to add 'utf-8' to message.encoding but nothing happened. Also removed subject.marko and made a new one to make sure there no encoding error on my file.

niftylettuce commented 4 years ago

I'm guessing your Marko template files are encoding the value or something. Can you look into Marko docs to see how to disable or fix this?

marvinfretly commented 4 years ago

Ok I found the problem, Everything is working well, it's only on the mail preview. When I realy send the mail everything is working great