# Theme missing email.html.twig

**URL:** https://forum.mautic.org/t/theme-missing-email-html-twig/20665
**Category:** Product Support
**Tags:** mautic-4
**Created:** [August 31, 2021, 3:59pm UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665 "2021-08-31T15:59:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)
#### Post date: [August 31, 2021, 3:59pm UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665/1 "2021-08-31T15:59:02Z")

</div>

**Your software**  
My Mautic version is: 4.0  
My PHP version is: 7.4  
My Database type and version is: tidb

**Your problem**

I am trying to create a mjml-based theme. When I upload my theme, it complains that ‘email.html.twig’ is missing. So i rename email.mjml.twig to email.html.twig.

I look at a sample ([GitHub - mautic/theme-brienz](https://github.com/mautic/theme-brienz)), i see email.mjml.twig, so i think i did it properly.

I look at this PR:

> <https://github.com/mautic/plugin-grapesjs-builder/pull/74>
>
> This should fix this https://github.com/mautic/mautic/issues/9676
> At the moment… If you want use MJML you need add to your template email.mjml.twig.
> 
> After this PR your template should have email.html.twig with MJML. This allow upload template without issue.
> State before I marked as deprecated, we should rename email.mjml.twig to email.html.twig and note it to documentation. 
> 
> Steps to tests:
> 
> 1. Delete brienz theme and upload modified them with renamed email.mjml.twig to email.html.twig
> \[brienz.zip\](https://github.com/mautic/plugin-grapesjs-builder/files/6406871/brienz.zip)
> 
> 2. Try If template works like before

and try renaming to email.html.twig (w/ mjml inside), and it uploads ok, shows on the themes list, but, when i compose an email is not present.

Am i supposed to use email.mjml.twig or email.html.twig. What pre-requesites do I need on the server to make tis work? the brienz theme seems to function so i assume all are present.

---

<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: [September 1, 2021, 8:59am UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665/2 "2021-09-01T08:59:13Z")

</div>

Just copy your email.mjml.twig to email.html.twig and upload the archive. Will be okay.

---

<div class="post-metadata">

### Author: ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)
#### Post date: [September 1, 2021, 6:14pm UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665/3 "2021-09-01T18:14:15Z")

</div>

ok. but the samples etc don’t have this:

> **[GitHub - mautic/theme-brienz](https://github.com/mautic/theme-brienz)**
>
> Contribute to mautic/theme-brienz development by creating an account on GitHub.

which makes them somewhat non-functional right now. Is this the intent?

---

<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: [September 2, 2021, 10:01am UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665/4 "2021-09-02T10:01:12Z")

</div>

Here is the thing.  
Examples don’t have it because they are not uploaded via the UI.  
I just checked it: the bug still exists in M4. You can’t upload via the UI if you don’t have the email.html.twig. This file was needed earlier for templates to work.  
My money is on /app/Bundles/CoreBundle/Helper/ThemeHelper.php:469. But an actual coder should take a look.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [September 6, 2021, 1:14pm UTC](https://forum.mautic.org/t/theme-missing-email-html-twig/20665/5 "2021-09-06T13:14:04Z")

</div>

According to the PR you mentioned, you add the MJML to the existing file (or duplicate it and rename it). Ideally we should be able to upload MJML only themes, this was suggested as a workaround to make it easier for users.

Have you tried with the MJML file and the regular one with the same content?

As a simpler workaround just add the theme to the folder on the server rather than uploading. Would be good to address it though and allow both to be uploaded without the cludgy workaround in the longer term, I think, as most end-users are likely to use the upload (plus if you download / upload a modified theme, also more likely to use the user interface I would expect.
