Skip to main content

How to customize your transactional emails

Using Brevo Template Language, you can dynamically customize your transactional emails by inserting placeholders in your email templates. These placeholders are then replaced with data specific to each of your recipients when the email is sent. Brevo Template Language supports not only text substitutions, but also conditions, loops, and filters.

💬 Placeholders

Placeholders are tags that are added to your email templates and replaced with contact-specific data when the transactional email is sent. This data can be:

➡️  Learn how to insert placeholders in your email templates by clicking the dedicated links above.

🪄 Filters

You can use filters together with placeholders to provide additional functionality to your emails. For example, you can set up default values in case a contact attribute is empty or structure the format of words, numbers, and dates.

➡️  Learn how to use filters in Modify the formatting of your placeholder with filters.

👀 Conditions

Conditions allow you to manage how content is displayed in your emails according to specific criteria. For example, you can:

  • Personalize the heading of your email and use a different tone according to the age of your contacts.
  • Personalize content blocks to display different products or offers according to specific criteria (for example, a special discount for your loyal clients, according to their preferences etc.).
  • Personalize content blocks to suit different reading devices and display certain elements only on smartphones or desktop computers.

This logic is established by applying tags around or within your content blocks. 

Show or hide block (if conditions)

Our Show or hide block option enables you to display content blocks according to specific criteria without having to manually add if conditions to your email template. For instance, if the contact attribute "FAV_COLOR" is "BLUE", then show the image with the blue t-shirt item.

For more advanced use, you can also manually add if conditions to your email templates.

➡️  Dedicated articles:

Repeat block (for loops)

Our Repeat block option enables you to loop or iterate over items in a sequence and display them as a list in your email without having to manually add for loops to your email templates.

This tag is very powerful when combined with your transactional parameters and is also helpful when you are designing an email template to hold an unknown number of items in a list. For example, you could display a list that includes the name of the products purchased by your customers, followed by the price of the products. This list will adapt according to the purchase of each customer.

Dynamic_list__1_.png

For more advanced use, you can also manually add for loops to your email templates.

➡️  Dedicated article: Repeat a block of items in your emails

⏩ What's next?

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

💬 Was this article helpful?

0 out of 19 found this helpful