(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:
```
{% 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:
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
Hello,
Here’s my workflow:
- I use stripo.email to design the template (without any Twig code) and export it as an HTML ZIP.
- I upload the HTML ZIP to my MailWizz campaign using the "Upload template" option, then manually insert the Twig code.
```
{% 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.
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: