Problem description
In some cases this module should convert HTML content to text but it doesn't.
Steps to reproduce:
- Configure settings so that messages will be sent as Plain Text. Either a) enable respect_format or b) disable it and set output format to Plain Text.
- Send a mail that is capable of generating markup. For example use the default contact form.
- In the message include some special character - I used
A & B <c
Expected: Message appears as typed
Actual: Message appears as HTML A & B <c></c>
Proposed resolution
Drupal Core has the required code in PhpMail::format(). We need to call MailFormatHelper::htmlToText() if the output format is text/html and the input is markup. This code should go in SwiftMailer::massageMessageBody().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | swiftmailer.htmlToText.3123159-2.patch | 727 bytes | adamps |
Comments
Comment #2
adamps commentedComment #4
adamps commentedLet's get #3122389: Bugs with format conversion fixed first.
Comment #5
adamps commentedWas fixed as part of #3122389