Twig Code Not Rendering Reliably

SoftTimur

Member
(I purchased a support pack specifically for this question, which has puzzled me for a long time — and I believe it may affect many users.)

Hello,

Here’s my workflow:
  1. I use stripo.email to design the template (without any Twig code) and export it as an HTML ZIP.
  2. I upload the HTML ZIP to my MailWizz campaign using the "Upload template" option, then manually insert the Twig code.
As a result, I have a template with the following introduction:

```
{% if ((OPENS_SCRAPING_MAILWIZZ >= 1) or (EARLIEST_ACTIVE_DATE|date('U') < '2025-01-01'|date('U'))) %}I hope this message finds you in good health and high spirits.{% else %}Introduce who I am...{% endif %}
```

I tested the template using the "Test template" feature on the Campaign template page and sent test emails to several of my own addresses. The emails I received were correctly formatted.

However, when I sent the actual campaign, a recipient replied showing that the Twig code appeared literally in the message: `{% if ((OPENS_SCRAPING_MAILWIZZ >=1) or ...`.

Additionally, I noticed the following:
  • After some non-complicated edits on the template on the Campaign template page, a previously working template may suddenly break — and the Twig code no longer renders in testing emails.
  • After duplicating a campaign, the template consistently fails to render Twig correctly in the testing emails.
In short, Twig rendering in MailWizz appears unreliable.

Could someone please log in to my system and investigate what’s happening? I’ve posted several questions about Twig, and it consistently fails to work as expected.

Thank you in advance, and best regards

Timur
 
Last edited:
Hello,

can you share template with us to make a test on our dev? Also you can open a support ticket and leave us the access(url, email, password) to your application.

Laurentiu
 
Hello,

can you share template with us to make a test on our dev? Also you can open a support ticket and leave us the access(url, email, password) to your application.

Laurentiu
Hello Laurentiu,

Thank you for your reply. I just opened a support ticket, I think you could find the template in my system?

Regards

Timur
 
Back
Top