How do I create dynamic content in Mautic?

With the concept of reusable dynamic content, you can create components once and then reuse them in different emails.

Here we show you an example of this:

z. B.:
{% if contactfield.gender == ‘Female’ %}

Dear Ms {{contactfield.lastname}}
{% elseif contactfield.gender == ‘Male’ %}
Dear Mr. {{contactfield.lastname}}
{% else %}
Hello {{contactfield.firstname}} {{contactfield.lastname}}
{% endif %}

dynamic contents

Afterwards, you can use this dynamic content directly in the email builder. Simply drag and drop the block onto the canvas and select the appropriate element.

You can use the full power of TWIG here.