Creating plain text emails is not possible
Mautic Series
7.2.x series
Mautic installed version
7.2.0
Way of installing
I'm using a Docker image from https://hub.docker.com/r/mautic/mautic
PHP version
8.2.0
What browsers are you seeing the problem on?
No response
What happened?
According to this post from Mautic forum, we should be able to configure plain-text emails. But if we repeat the steps outlined in this post, we will get the result from this post when sending:
There is still a bug in Mautic as of 5.2.7 that doesn’t allow for sending of pure plain text emails. Even after deleting all of the code in the html box, Mautic attempts to fill it back in and sends gibberish to receivers instead of the plain text.
The reason for this is likely compatibility code for Mautic v1 in MailHelper: https://github.com/mautic/mautic/blob/7912edbd7ede249ddbb2721abd6def94bee52f3e/app/bundles/EmailBundle/Helper/MailHelper.php#L1258-L1267
How can we reproduce this issue?
- Create an email
- Provide a name and enter the subject.
- In the “Themes” section, select the “Code mode” option.
- Now, navigate to the “Advanced” tab. Delete everything inside the “HTML Code” field and then type your message.
- Save the email.
- Preview the email that you just created. You will see that it appears as plain text, like you desired.
- Send test mail
Relevant log output
Code of Conduct
- I confirm that I have read and agree to follow this project's Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
Source: mautic/mautic