# Contact \> Send Email \> Existing Template - Broken

**URL:** <https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352>\
**Category:** Product Support\
**Created:** [October 21, 2021, 4:40pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352 "2021-10-21T16:40:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 21, 2021, 4:40pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/1 "2021-10-21T16:40:51Z")

</div>

**Your software**  
My Mautic version is: 4.0.1  
My PHP version is: 7.4.23  
My Database type and version is: MariaDB v1:10.2.40+maria~bionic

**Your problem**  
My problem is: Campaign emails stopped going out for some reason. I tried sending one of the transaction emails to my contact record. Selecting the existing template sends an email with nothing in it. The UI also prompts an error if the body of the email window is empty.

These errors are shown in the log: Error log is empty. Nothing jumping out in server logs

Steps I have tried to fix the problem: Cleared cache folder

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3ec690c2b64bed81cea2f7aca5dd2b8ca91dfe7a.png)

---

<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:** [October 21, 2021, 6:08pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/2 "2021-10-21T18:08:27Z")

</div>

Mautic 4.0.1 comes with a new editor also in this page. I’m talking about the editor by the “Body” section of your screenshot.  
However in this screenshot it is still the old one. Could it be, that the old javascript is stuck in your browser?

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 21, 2021, 6:44pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/3 "2021-10-21T18:44:38Z")

</div>

I just flushed the cache of the browser in DEV mode and it’s still showing the same editor.

FYI, I have removed the GrapesJS editor and am using the original editor. GrapesJS was causing too many issues.

I have seen an error in the Chrome DEV console

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/51a14893efed71c111803668a238410293d35f02.png)

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 21, 2021, 6:46pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/4 "2021-10-21T18:46:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5ce818308d5e6ace2c5d988f5aa76fab98295f67.png)

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 21, 2021, 6:47pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/5 "2021-10-21T18:47:11Z")

</div>

closing the send window produces this error in the console

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/98aca540a5c9c1207d31479d94f3cbb4df4b4dfc.png)

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [October 22, 2021, 6:51am UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/6 "2021-10-22T06:51:21Z")

</div>

As @joeyk was suggesting, this Javascript error indicates that the new Richt Text Editor cannot the loaded. With Mautic 4 it should always be loaded.

@aglyons Do you have the same error with other textareas? E.g. if you add a note to a contact.

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 22, 2021, 1:17pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/7 "2021-10-22T13:17:50Z")

</div>

I don’t get an error when opening the note modal  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/00fd18421969fc88926b58db8767673839b6edc3.png)

but if you cancel the note then I get this error in the console

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4fa0528a91879d70e861b26ce04d610c97d954c3.png)

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [October 23, 2021, 7:20am UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/8 "2021-10-23T07:20:00Z")

</div>

This shows that your code is trying to load froala. IMO this should not happen. Froala was replaced with CKE in this PR [TPROD-143 Replaces Froala with CKEditor 4 as the default WYSIWYG by alanhartless · Pull Request #9843 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/9843)

My first step would be: clear all caches  
Can you reproduce the same issue with a clean install of Mautic?

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 26, 2021, 2:44pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/9 "2021-10-26T14:44:21Z")

</div>

I just checked on another install of Mautic I have, currently running v3.3.3. The ‘select existing template’ drop-down populates the editor as expected and emails send.

I then updated that install to v4.0.1 and cleared the cache manually leaving only IP data. Now it does the same as it does on my first Mautic install. It just spins the icon trying to load the template but never loads.

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0ef0541255337349055ef2c99ed69e870e960c52.png)

The CKEditor error only pops up in the console when selecting an existing template.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7bd3e17d47912b4ba330c29a68b6d26a265d7193.png)

Also, clicking ‘Cancel’ on the modal window produces the Froala error.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1070de7e2d7bef707b5201e180945105593d1901.png)

I suspect that this editor window was missed in the editor overhaul that was done and it’s still calling retired code.

---

<div class="post-metadata">

**Author:** ![aglyons](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aglyons/32/2825_2.png) [@aglyons](https://forum.mautic.org/u/aglyons)\
**Post date:** [October 26, 2021, 2:56pm UTC](https://forum.mautic.org/t/contact-send-email-existing-template-broken/21352/10 "2021-10-26T14:56:17Z")

</div>

I just tested enabling GrapesJS editor. I cleared the cache and now that editor is working as expected. This specific editor REQUIRES GrapesJS in order for it to work at all. It will not function using the original editor when GrapesJS is not enabled.

The problem is I have disabled GrapesJS as I was having more issues trying to get emails to work period. While not having this specific function is not the end of the world, it would be prudent to check what is different about this editor compared to the others in the system.
