- Newest
- Most votes
- Most comments
Email needs a lot of encoding. The default for email is to have 7bit us-ascii data only and body parts then need to be encoded using quoted-printable or base64. But since most (if not all) mail systems and readers support 8bit data, you can make an html body part look like this:
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<!doctype html><html><head><meta charset="utf-8"></head><body>été enregistrée</body></html>
make sure your template is actually in the utf-8 charset and this should work fine. Note that the charset in the email headers should be the same as the one mentioned in the html meta tag.
i've tried to send email by retrieving first the template and then send with sendRawEmail. When i get back the html from the template. It's not correctly encoded and i have this back
"<!doctype html><html><head><meta http-equiv="Content-Type" Content="text/html"; charset="UTF-8"></head><body><h1>Bonjour,</h1><p>Une personne a utilisé le formulaire de contact du site. à é è </p><ul><li>Nom: {{name}}</li><li>Email: {{email}}</li><li>Sujet: {{subject}}</li></ul><p>Message:</br>{{message}}</p><p>Cordialement,</br>Kids&Fun,</p></body></html>"
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Thanks for your reply but don't understand everything. Where do i have to add the first two lines "Content-Type? Inside HtmlPart of my temple?