# Spintax-like Email template randomization

**URL:** <https://forum.mautic.org/t/spintax-like-email-template-randomization/24033>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [May 8, 2022, 2:12pm UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033 "2022-05-08T14:12:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![web.user](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/web.user/32/7513_2.png) [@web.user](https://forum.mautic.org/u/web.user)\
**Post date:** [May 8, 2022, 2:12pm UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/1 "2022-05-08T14:12:49Z")

</div>

**Software**  
Mautic version is: v4.2.2  
PHP version is: 7.4.28  
Database type and version is: PDO\_MySQL 5.7.37-40

**The question**  
In many EMA’s it is possible to do email content randomization. For example, in MailWizz you can do `[RANDOM_CONTENT:Welcome|Nice to meet you|Hello]` and some of the sent emails will contain “Welcome”, others will be “Nice to meet you” and “Hello”. Sometimes it’s called _spintax_. I have read that it might improve email deliverability. How can I achieve this with Mautic?

I searched the documentation, but not found an answer, only variables overview. Are there other template language tokens other than variables? Are there plugins for this?

**Update** : I found a workaround - to use _Dynamic Web Content_, but it still does not provide full randomization capabilities, so the question is open.

---

<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:** [May 8, 2022, 6:47pm UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/2 "2022-05-08T18:47:02Z")

</div>

Hello,  
You can install th twig templates plugin,

> **[Twig Templates for Mautic](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)**
>
> Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now

Which gives you a lot more customization option than any mailwizz spintext.

Here is an example for random content:  
`{{ random(['apple', 'orange', 'citrus']) }}`

Regards:  
Joey

---

<div class="post-metadata">

**Author:** ![web.user](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/web.user/32/7513_2.png) [@web.user](https://forum.mautic.org/u/web.user)\
**Post date:** [May 8, 2022, 8:30pm UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/3 "2022-05-08T20:30:46Z")

</div>

Thank you! But the plugin price is quite aww (also not open source)… But it is still better then nothing.

---

<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:** [May 8, 2022, 10:39pm UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/4 "2022-05-08T22:39:22Z")

</div>

Honestly, the plugin is super cheap in comparison to the value it gives. The fact that you pay for it also ensures continuous upgrades.  
No affiliation just honest opinion.

---

<div class="post-metadata">

**Author:** ![web.user](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/web.user/32/7513_2.png) [@web.user](https://forum.mautic.org/u/web.user)\
**Post date:** [May 9, 2022, 6:06am UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/5 "2022-05-09T06:06:47Z")

</div>

> [@joeyk](#):
>
> the plugin is super cheap in comparison to the value it gives

Yeah, I just believe that the best software should be free & open source. I chose Mautic over MailWizz because of this.

---

<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:** [May 9, 2022, 6:33am UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/6 "2022-05-09T06:33:45Z")

</div>

Mautic is open source, which allows you to create your own spintax plugin. Noone stopping you from doing so. You can do it for free.  
If you can’t code, then you’ll need to pay someone to do it. It would cost you between $300-$1000 to create a custom plugin. Then spend $100-$300 for every version upgrade.

OR you can just buy it for the fraction of the price and get free upgrades.

My baker is using an open source recipe for making bread. Even if he would get flour and yiest and oven time for free, he would still charges me for every single loaf to cover his time investment.

Just a heads up:  
Mailwizz and Mautic are very very different. You won’t get the same results, as Mailwizz is a Mass email software, and if you try to use Mautic as mass email you are up for a surprise.

---

<div class="post-metadata">

**Author:** ![web.user](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/web.user/32/7513_2.png) [@web.user](https://forum.mautic.org/u/web.user)\
**Post date:** [May 10, 2022, 8:27am UTC](https://forum.mautic.org/t/spintax-like-email-template-randomization/24033/7 "2022-05-10T08:27:48Z")

</div>

OK, thank you for clarification. I will try phpList or ListMonk then…
