Open alistair3149 opened 1 week ago
I've looked into this. Symfony Mailer currently has no easy way of sending an already pre-encoded multipart mail.
While there are methods for sending such mails (https://symfony.com/doc/current/components/mime.html#creating-raw-email-messages) this is not supported when using the default Email
class (https://symfony.com/doc/current/mailer.html#message-contents).
I've tried sending a html mail locally without Extension:SymfonyMailer
installed and the output does look correct:
Maybe Ext:SymfonyMailer can be sunsetted?
Maybe Ext:SymfonyMailer can be sunsetted?
I agree with sunsetting it.
The original use case for SwiftMailer seems to be that PEAR mail is not being maintained, but it is not the case anymore. And HTML emails and multipart emails are working fine without the extension.
With SymfonyMailer enabled, the HTML and Multipart emails received from MediaWiki are not encoded properly. MediaWiki already encoded the
$body
passed to the hook. Using thetext()
orhtml()
methods on theEmail
class break the email content.Steps to reproduce
$wgAllowHTMLEmail = true;
Extension:Echo
Actual result Email becomes gibberish because of the encoding characters and raw HTML.
Expected result Email is formatted properly and the HTML is rendered.