HTML Templates support for Mautic 5+

Why did mautic stop support for HTML templates and is pushing for MJML? and is there any quick/easy way to convert HTML templates to MJML?

Hello @hungrykoala

MJML isn’t mandatory, you can use plain HTML without any issues.
Just create a new email and choose Code Mode. You will see an Advanced tab.
Open it, paste your HTML into the field provided, and save!

Hope it helps!
Best regards,
Ricardo

Aye, we saw that part, but our problem was that you can only change the code via the advanced tab and then check the preview each time you make an update.

We’re used to v4 Mautic. We’re wondering if there’s an easier way to convert HTML to MJML or a more efficient way to manage our old HTML templates.

Thank you!

Hello @hungrykoala,

As far as I know, it’s not possible to convert HTML into MJML.
You need to write your emails in MJML first, and only then is the HTML generated.

If you are hand-coding your emails in HTML, you will pick up MJML very quickly.
If you are using an email builder that outputs HTML, that’s a different situation. Check whether the builder can also provide MJML. Some builders actually use MJML internally but only export the HTML. It’s worth looking through the settings to see if that option is available.

Best regards,
Ricardo

I asked the same thing a while ago. Mautic pushed MJML mainly for responsive behaviour and because it’s easier to control rendering across email clients. Plain HTML was harder to maintain. For quick conversion, I used the MJML editor and manually copied the sections from the HTML template. Not automatic, but fast if the template isn’t complex.

Hello @hungrykoala & @felix727,

If you are using 3rd party email builders like BeeFree or Stripo, you can keep your emails organized in their platforms and then export directly to Mautic via API, or export the HTML and paste it into the Code Mode option.

While these tools are user friendly and can simplify the process, they lock you into their ecosystem. In my opinion, this isn’t the right decision for the mid-to-long term. It would be significantly more cost-effective to use GrapeJS alone, or even hire someone to build a custom template with all the elements you need.

That said, if you’re sending a very high volume of emails with lots of creative variations that differ significantly from each other, these builders can make sense in those specific situations.

GrapeJS does have a learning curve, but it’s the best option since it allows you to work with MJML directly, giving you more control and flexibility without vendor lock-in.

Note: I have created a free directory of ready-to-use MJML email templates specifically for Mautic. Feel free to use them directly, adjust them to your needs, or dive into the code to learn MJML and create your own custom emails!

Best regard,
Ricardo

In Mailjet, you can create an email and export it to MJML using their template library, and then import it into Mautic.

To do this, you need a paid Mailjet plan, which can be used in Mautic to send the emails.