# MJML template does not clone correctly

**URL:** <https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283>\
**Category:** Product Support\
**Created:** [July 26, 2021, 11:15pm UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283 "2021-07-26T23:15:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [July 26, 2021, 11:15pm UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/1 "2021-07-26T23:15:41Z")

</div>

**Your software**  
My Mautic version is: 3.3.2  
My PHP version is: 7.4.21

**Your problem**  
My problem is:  
I am trying to clone an email that was is based on an MJML template. When I clone the email, it reverts to a HTML template. I would like to be able to clone and continue to edit in MJML. How can I achieve that? Or is that a bug that needs fixing?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 27, 2021, 6:20am UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/2 "2021-07-27T06:20:04Z")

</div>

Hi, when you create an email from your MJML template, it will be saved as HTML, not MJML.  
Watch this video for clarification:

[![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cf8a05f1b22f0af563919bee26e9b51d61364011.jpeg "Complete Guide To The Mautic MJML Email Builder") ](https://www.youtube.com/watch?v=B6ABMjOY3ZU)

---

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [August 3, 2021, 6:47pm UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/3 "2021-08-03T18:47:24Z")

</div>

Well, actually the first time I save it, it stays in MJML, which gets translated to HTML. If I go back to that email, I can edit the MJML anytime I want and save it again. When I clone it, the MJML is gone, and I need to edit the HTML. Like you said in the video, MJML is easier to deal with in the editor, and as far as I understand, MJML guarantees that it is going to be compatible with all email clients. When I edit an HTML, I cannot know whether it looks right in all clients. There must be a way to clone an email so that it remains to be MJML. Is that a bug, or am I missing anything why Mautic is acting this way?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 4, 2021, 11:14am UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/4 "2021-08-04T11:14:38Z")

</div>

Here is the thing.  
Right now the email consists of 2 parts (more but let’s say 2.) A header and the body.  
The header is still in HTML (See your template’s code) while the body is in MJML.  
Every time you edit a template directly - you can edit mjml.  
Every time you clone an email you turn into HTML - so you’ll continue editing an HTML letter.

It will change with time, this is just a temp solution. I would create a template instead of cloning the emails over and over again.

Joey

---

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [August 16, 2021, 12:34pm UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/5 "2021-08-16T12:34:06Z")

</div>

OK, so you confirm that for now I am losing the MJML code when cloning an email. I don´t think it should be difficult to clone the MJML together wit the rest of the email, so I hope this feature is coming soon.

So for the moment I need to create a Mautic template. That means I need to study a tutorial how to create Mautic templates, right?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 16, 2021, 1:10pm UTC](https://forum.mautic.org/t/mjml-template-does-not-clone-correctly/20283/6 "2021-08-16T13:10:34Z")

</div>

It depends on your skill level. A tutorial can help, especially if it explains in details what and how you have to do.  
Otherwise here are the docs: [Email & Landing Page Builder | Mautic](https://docs.mautic.org/en/builders)
