# Custom email does not work in 4.3.1

**URL:** <https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [June 2, 2022, 9:10pm UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344 "2022-06-02T21:10:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [June 2, 2022, 9:10pm UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/1 "2022-06-02T21:10:46Z")

</div>

**Your software**  
My Mautic version is: 4.3.1  
My PHP version is: 7.4.29  
My Database type and version is: pdo\_mysql / 5.7.38

**Your problem**  
I’m trying to compose an email using code mode, but when i save it keeps reverting back to the “Blank” template. This was working fine in 4.2.2. I have tried using grapesjs and the legacy builder (cache was cleared each time, browse cache was flushed each time - also tried each time incognito).

Video here - [saving](https://www.screencast.com/t/NnWTYKlRmwD)

These errors are showing in the log: None

Steps I have tried to fix the problem: turned off grapesjs and cleared the server / browser cache

Thanks!

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 3, 2022, 1:52am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/2 "2022-06-03T01:52:12Z")

</div>

I had sort of a similar issue but not exactly the same as you.

What I did was to select email theme then open builder and close builder then save it.

Try that see if that help you save the theme you selected.

I’m curious so let me know the result.

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [June 3, 2022, 3:10am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/3 "2022-06-03T03:10:43Z")

</div>

Hi Bill,

I’ll give that a try right now…

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [June 3, 2022, 3:13am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/4 "2022-06-03T03:13:42Z")

</div>

In 4.3.1, using grapesjs - there is no builder for code mode. You need to go to the advanced tab and edit the code there. So, it didn’t work.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 3, 2022, 4:17am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/5 "2022-06-03T04:17:15Z")

</div>

I went look on mine and you are right. Builder is greyed out and it did the exact same thing on mine when I saved it which jumped to another theme when saving.

It’s seems to be a bug to me.

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [June 3, 2022, 4:36am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/6 "2022-06-03T04:36:10Z")

</div>

Glad im not the only one - i can’t even get the code block to work in the grapsejs

---

<div class="post-metadata">

**Author:** ![troopsy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/troopsy/32/7036_2.png) [@troopsy](https://forum.mautic.org/u/troopsy)\
**Post date:** [June 4, 2022, 2:27pm UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/7 "2022-06-04T14:27:20Z")

</div>

Yes, I’m having this same issue. Is there a work around? I can’t edit or save any emails from the templates

---

<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:** [June 6, 2022, 6:49am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/8 "2022-06-06T06:49:50Z")

</div>

This might be connected to this?

> <https://github.com/mautic/mautic/pull/10154>
>
> | Q | A
> | --------------------------------…------ | ---
> | Branch? | "features" for all features, enhancements and bug fixes (until 3.3.0 is released) 
> | Bug fix? | yes
> | New feature? | no
> | Deprecations? | no
> | BC breaks? | no
> | Automated tests included? | no
> | Related user documentation PR URL | 
> | Related developer documentation PR URL | 
> | Issue(s) addressed | 
> 
> \<!--
> Additionally (see https://contribute.mautic.org/contributing-to-mautic/developer/code/pull-requests#step-5-work-on-your-pull-request):
> - Always add tests and ensure they pass.
> - Bug fixes must be submitted against the lowest maintained branch where they apply
> (lowest branches are regularly merged to upper ones so they get the fixes too.)
> - Features and deprecations must be submitted against the "features" branch.
> \--\>
> 
> \<!--
> Please write a short README for your feature/bugfix. This will help people understand your PR and what it aims to do.
> \--\>
> \#### Description:
> If the template is removed for email or landing page, the blank theme should be selected.
> 
> \<!--
> If you are fixing a bug and if there is no linked issue already, please provide steps to reproduce the issue here.
> \--\>
> 
> \#### Steps to test this PR:
> 1. Remove template from the code
> 2. Check if blank template is selected
> 
> \<!--
> If you have any deprecations, list them here along with the new alternative.
> If you have any backwards compatibility breaks, list them here.
> \--\>
> 
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/10154"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 6, 2022, 12:07pm UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/9 "2022-06-06T12:07:53Z")

</div>

Fixed in [Code mode fix by escopecz · Pull Request #11221 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/11221). Ready for testing.

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [June 7, 2022, 1:14am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/10 "2022-06-07T01:14:18Z")

</div>

This fixed it for me! Thank you once again!

---

<div class="post-metadata">

**Author:** ![troopsy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/troopsy/32/7036_2.png) [@troopsy](https://forum.mautic.org/u/troopsy)\
**Post date:** [June 18, 2022, 3:04am UTC](https://forum.mautic.org/t/custom-email-does-not-work-in-4-3-1/24344/11 "2022-06-18T03:04:52Z")

</div>

I was able to fix my problem by turning off ModSecurity (in cpanel) on the domain that I have mautic running on. For some reason, I the plugin blocks saves and changes to the template. I use Namecheap hosting,
