Personalizing Content
Use the iPost Template Language (iTL) to personalize email content, add dynamic or conditional content, and insert data fields—such as a contact's name—into the body, subject line, preheader, or URLs.
Format
iTL macros are formatted by adding the data field name between '{\var:' and '}'. For example, first name would become {\var:first_name}.
iTL is case-sensitive, so ensure that the field name is exactly as it appears in the platform.
If a contact does not have a value present in the data field, the iTL will render nothing in the live email send. To ensure that a value renders for all contacts, be sure to define a default value when using iTL.
To define the default value, place it after the field name in the iTL macro. If we refer to our previous example, we can define the default value for first name as customer like this: {\var:first_name Customer}.
Links
iTL macros can be added to URLs, in order to pass field values as parameters. To add iTL to URLs, simply add the macro with a corresponding parameter to the end of the URL. See the example below:
www.example.com/?firstname= {\var:first_name}&email={\recipient_addr}
Commonly Used iTL Macros
| Output Type | iTL Macro |
|---|---|
| Business Name | {\client_name} |
| Current Year | {\strftime \format=%Y} |
| Date | {\strftime \format=%m/%d/%Y} |
| Forward to a Friend | {\f2f_link} |
| Opt Out | {\opt_out_uri} |
| One Click Opt Out | {\opt_out_oneclick} |
| Postal Address | {\sender_postal_addr \format=text} |
| Recipient Email | {\recipient_addr} |
| View Message Online |
{\viewmessage_link} |
More advances uses for iTL can be found in our iPost Template Language documentation.