# Mautic TWIG Advanced Templates Bundle

**URL:** <https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [January 2, 2023, 9:56pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571 "2023-01-02T21:56:00Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 20, 2025, 8:35pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/21 "2025-12-20T20:35:58Z")

</div>

This looks like its stemming from another issue.

Try this, delete our plugin folder. Then try the plugin reload again. If it still fails then its confirmation its not this plugin.

If it no longer fails then, send me your specific mautic version and I’ll spin up another instance and test also let me know if you have other plugins installed that could cause conflicts so I can install those too while testing.

I am using the plugin now and I have no issues with it but I am willing to spend some time fixing a few edge case bugs.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 20, 2025, 9:40pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/22 "2025-12-20T21:40:16Z")

</div>

I love your motivation! Many thanks.  
The error is still there. It is some other issue.

I’ll keep on searching…

I’m using the latest 6.0.7 version.

My installed plugins are:

AmazonSesBundle MauticCloudStorageBundle MauticFullContactBundle MauticTagManagerBundle  
AmazonSesBundle.bak MauticCrmBundle MauticGmailBundle MauticZapierBundle  
GrapesJsBuilderBundle MauticEmailMarketingBundle MauticOutlookBundle  
MauticClearbitBundle MauticFocusBundle MauticSocialBundle

---

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 20, 2025, 10:03pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/23 "2025-12-20T22:03:21Z")

</div>

The only difference with plugins between your instanec and mine is AmazonSesBundle.

**Why are you using that plugin?** According to the documentation “_This plugin enable Mautic 5 to run AWS SES as a email transport and provide a callback to process bounces. Tested in Mautic 5.0.0 to 5.2.0_“

I am asking because I also use AWS SES to send all emails, but I do not have that plugin. I just plugged the SMTP details in the email settings and it works fine.

I think you should try debugging from that standpoint. Remove it clear cache, reload plugins and see what happens. You can plug your SMTP credentials from AWS directly in the email settings in the UI.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 21, 2025, 7:16am UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/24 "2025-12-21T07:16:02Z")

</div>

I’m using it to send my emails via Amazon SES.

---

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 21, 2025, 3:09pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/25 "2025-12-21T15:09:09Z")

</div>

I understand. What I’m saying is that I’m also sending emails using Amazon SES, but I don’t have that plugin installed. Instead, I entered the SMTP credentials directly in Mautic’s email settings, and it works fine.

Additionally, that plugin only guarantees compatibility with Mautic 5, which means it could be the cause of the issue you’re experiencing. Since this plugin is both potentially incompatible and unnecessary, and it’s the only difference between your setup and mine in terms of plugins, it’s a likely source of the problem which should be tested.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 21, 2025, 4:46pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/26 "2025-12-21T16:46:07Z")

</div>

You Genius! That did the trick!

I deleted the AmazonSES Plugin, deleted the cache, reloaded the plugins and voila, there is your plugin!

Many thanks for your patience!

I’m excited using it now!

Have a merry, blessed Christmas.

Christian

---

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 21, 2025, 8:17pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/27 "2025-12-21T20:17:25Z")

</div>

Glad I could help!

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 21, 2025, 9:34pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/28 "2025-12-21T21:34:44Z")

</div>

Sorry, for disturbing again. But I have the following issue:

I have a new segment email and added some conditional lines. Unfortunately, the conditions are not resolved, but show up in the email.

Any hint?

 ![Screenshot From 2025-12-21 22-33-10](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/51812e976ed793e53452c69ae2bc14d2ac02cd26.jpeg)

| |
| --- |

---

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 21, 2025, 9:59pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/29 "2025-12-21T21:59:29Z")

</div>

Read from here down. Seems you typed it all into the text editor. You have to edit the MLJM code. And use blocks. Link will take you to the specific section with that instruction

> **[GitHub - ryonwhyte/MauticTwigEnhancements](https://github.com/ryonwhyte/MauticTwigEnhancements?tab=readme-ov-file#grapejs--mjml-usage)**
>
> Contribute to ryonwhyte/MauticTwigEnhancements development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 22, 2025, 7:58pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/30 "2025-12-22T19:58:16Z")

</div>

Many thanks. Makes sense.

Unfortunately, there is still something wrong:

```auto
	<mj-raw>{% if contactfield.title == '0' %}
	</mj-raw>
	<mj-raw>{% if contactfield.du_sie == 'Sie' %}
	</mj-raw>
	<mj-text>Sehr geehrter Herr {{ lead.lastname }}!
	</mj-text>
	<mj-raw>{% else %}
	</mj-raw>
	<mj-text>Lieber {{ lead.firstname }}!
	</mj-text>
	<mj-raw>{% endif %}
	</mj-raw>
	<mj-raw>{% else %}
	</mj-raw>
	<mj-raw>{% if contactfield.du_sie == 'Sie' %}
	</mj-raw>
	<mj-text>Sehr geehrte Frau {{ lead.lastname }}!
	</mj-text>
	<mj-raw>{% else %}
	</mj-raw>
	<mj-text>Liebe {{ lead.firstname }}!
	</mj-text>
	<mj-raw>{% endif %}
	</mj-raw>
	<mj-raw>{% endif %}
	</mj-raw>
	<mj-raw>{% else %}
	</mj-raw>
	<mj-text>Hallo {{ lead.firstname }} {{ lead.lastname }}!
	</mj-text>
	<mj-raw>{% endif %}
	</mj-raw>

Result, see screeshot.

```

 ![Screenshot From 2025-12-22 20-57-43](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4fe9a4301403bed706b76bf00ad019c71c71678f.png)

---

<div class="post-metadata">

**Author:** ![ryonwhyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ryonwhyte/32/14702_2.png) [@ryonwhyte](https://forum.mautic.org/u/ryonwhyte)\
**Post date:** [December 22, 2025, 8:24pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/31 "2025-12-22T20:24:09Z")

</div>

That markup does not look right. I’d have to fully understand what you are doing. here is an sample real email template in use now [tempmjml - Pastebin.com](https://pastebin.com/b5vCkib6)

The data you are using in conditions should be sent in token over api.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [December 22, 2025, 10:42pm UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/32 "2025-12-22T22:42:53Z")

</div>

Many thank Ryon for your help! I really appreciate it very much!

I’ll check it and come back to you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [December 24, 2025, 10:43am UTC](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571/33 "2025-12-24T10:43:40Z")

</div>

Closed on December 24, 2025, 10:43am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

[Previous page](https://forum.mautic.org/t/mautic-twig-advanced-templates-bundle/26571.md?page=1)
