How to Format Email Templates
Use HTML and Twig snippets
Email templates consist of three elements: text, HTML, and snippets of Twig code. This article shows you how to properly format templates used to create and send bulk client messages as well as emails sent to a single client.
The same template structure (text, HTML, and Twig code) is used to create notifications (automated trigger-based messages).
Formatting text
Text in the Body can be formatted with basic HTML.
- Use
<br />
to create line breaks.
![a-2.png 920](https://files.readme.io/c770e64-a-2.png)
Use br / inside <> to insert line breaks
Adding snippets
Code snippets can insert dynamic content into the message when a receiver opens the email message.
To insert a snippet:
- Scroll down the screen and click a menu tab. Each tab holds a different collection of related code snippets.
- The tab options vary depending on the type of message you create.
![a-1.png 1187](https://files.readme.io/fac958a-a-1.png)
Click a menu tab
- Click a snippet to copy the code to the clipboard.
- Click a spot in the Subject or Body field.
- Paste the code into the field.
- Add more snippets as required.
- Click Save.
- Upmind displays the message on the page.
![a-3a.png 1763](https://files.readme.io/ee32f5d-a-3a.png)
Draft bulk action template
Email templates are built with Twig codes. To learn more about this code syntax, open the Twig site.
Updated about 2 months ago