Last updated on October 22, 2026
Dynamic templates let one transactional email, such as an order confirmation or a password reset, show different content to every recipient, based on the data your app sends with each email.
Note: Dynamic templates are available for transactional emails. Support for campaigns and automations is coming soon.
A dynamic template contains placeholders, conditions and loops written in Handlebars. When your app sends an email, it includes data such as the customer's name, plan or order items, and Mailzzy fills the template in for that recipient.
| To | Write |
|---|---|
Insert a value | {{first_name}} |
Insert a nested value | {{order.total}} |
Insert HTML without escaping it | {{{custom_html}}} |
Show content only when a value is set | {{#if coupon}} … {{else}} … {{/if}} |
Show content when a value isn't set | {{#unless paid}} … {{/unless}} |
Compare values | {{#if (eq plan "pro")}} … {{/if}} |
Repeat content for each item in a list | {{#each items}} {{name}} {{/each}} |
Note: If the data you send doesn't include a variable, it's left blank in the email. Empty text, 0, false and empty lists all count as "not set" in conditions, but the text "false" counts as set.
Any variable your test data doesn't fill stays visible in the preview as {{variable}}, so you can spot what's missing. Your test data is saved with the template version.
Once a version is live, choose Send test from the template's menu. Pick a verified sender and an active sending domain, enter the address to send to, and adjust the subject and test data. Test emails count toward your monthly transactional email allowance.
Your developers send dynamic templates through Mailzzy's transactional email API. Choose Copy template ID from the template's menu and give them the ID. Each request includes the template ID, the recipient and the data for that email, and Mailzzy always sends the live version. See Dynamic Templates in the API docs for the full request format.
From each template's menu you can Edit, Duplicate, Rename or Delete it. Deleting a template removes all its versions. Use the filters to show All Templates or My Templates, and Live or Draft templates.
Let's keep in touch
Sign up for our weekly email marketing newsletter and Mailzzy updates.
For more details, review our Privacy Policy