Problem/Motivation

Emails with html entities don't work correctly when 'plain_text' is set as the default handler.

Steps to reproduce

Send an email with a firstname/lastname like Bob"2 Tam'Oshanter
In the welcome email from Drupal, the apostrophe's will be '

Proposed resolution

Attached patch decodes html entities before they are processed by the mailgun plugin.

Remaining tasks

Testing/confirmation of the issue by others.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Tag1 Consulting supports Drupal.Tag1 logo

Comments

singularo created an issue. See original summary.

beatrizrodrigues’s picture

Status: Active » Needs review
beatrizrodrigues’s picture

Assigned: Unassigned » beatrizrodrigues
Status: Needs review » Needs work

Patch is not applying. I'll do the reroll of it.

beatrizrodrigues’s picture

Assigned: beatrizrodrigues » Unassigned
Status: Needs work » Needs review
FileSize
1.36 KB
matroskeen’s picture

Issue tags: +LutskGCW22

Thanks for the patch. We'll try to review during the contribution weekend.

matroskeen’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can I ask you to share the exact steps to reproduce?
I just tried doing the following:
1) Install the latest 9.3 Drupal version using Standard profile;
2) Install & enable Mailgun;
3) Send a test email using test form (/admin/config/services/mailgun/settings/test) with this text:

Howdy Bob"2 Tam'Oshanter!

If this e-mail is displayed correctly and delivered sound and safe, congrats! You have successfully configured Mailgun.

Here is the text of the received email, which looks correct at a glance:

Howdy Bob"2 Tam'Oshanter!

If this e-mail is displayed correctly and delivered sound and safe, congrats! You have successfully configured Mailgun.

The format filter in Mailgun settings is "Plain text".
Can you please elaborate and help me understand this issue?

Thanks!