HTML email should set charset UTF-8

Created on 29 August 2019, over 5 years ago
Updated 14 February 2024, 10 months ago

Problem/Motivation

Non-ASCII characters in HTML email are displayed broken by some email clients.

Emails sent by this module use the Content-Type text/html if the body is not empty. Otherwise, the content type is set to text/plain; charset=UTF-8; format=flowed; delsp=yes.
While this seems to be OK for HTML emails in most cases, I noticed that some email clients (Outlook in our case) get confused with the character set and display some characters as broken (German umlauts, for instance). Unfortunately, I can't really tell when this occurs, as I also witnessed HTML emails with umlauts being displayed correctly on the same client.

Proposed resolution

Set the content type header to text/html; charset=UTF-8 for HTML emails.

Remaining tasks

Write patch.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany mrshowerman Munich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024