SmartSender supports a large subset of the Twig templating language. Below are examples for some common templating use-cases.
Conditional syntax can be used to include/exclude email content based on data passed into API calls or stored in contact list.
HTML in Variables
Most of your HTML needs can be met in our template editor. If you are using user-generated HTML and you need to pass raw HTML as a variable, you’ll need to escape it with Twig raw filters or autoescape tags.
The following example illustrates how to use Twig filters to achieve date formatting of both timestamps and ISO 8601 date strings.