benchmark email logo
Contact Our Sales Team:
800.430.4095 or Live Chat
or Email Marketing Free Trial
You are here - Home > About Us > Email Marketing Blog > HTML Tips & Tricks - Merge Tags for Conditional Formatting
HTML Tips & Tricks - Merge Tags for Conditional Formatting
Feb 28 2011, 04:46 PM | by

Want to send multiple recipients the same newsletter but with unique content for each one? No problem. With the following HTML tags you can specify which information goes where and how you want to codify the destinations.

You can use the following codes to create emails with variable content based on individual contact details. The recipient can see uniquely created emails based on their name, email, state or any other custom field.
[if:fieldname=value]
This will evaluate the value of the field and proceed if there is a match. The field refers to the name of the column

[elseif: fieldname=value]
This will provide the alternative content if the given condition is satisfied.

[else]
This will provide an alternative content, in case the above conditions fail.

[endif]
This is to mark the end of the conditional statements.



For example:

If you want to add an additional message for recipients who are from California (based on the State column in their contact list), you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[endif]



If you want to add an additional message for recipients who are from California and a different one for contacts from Texas (based on the State column in their contact list), you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[elseif:State=TX]


      We have a meeting on February 28th.

[endif]



If you want to add an additional message for recipients who are from California (based on the State column in their contact list) and another for all others, you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[else]


      We have a meeting on February 28th.

[endif]



If you want to add an additional message for recipients who are from California and a separate one for contacts from Texas (based on the State column in their contact list) and a separate one for all others, you can create the following construct

[if:State=CA]

     We have a meeting on February 24th.

[elseif:State=TX]

     We have a meeting on February 28th.

[else]

     We have no meetings this month.

[endif]


To see all the merge tags available in Benchmark Email, click here

Posted in: New Features & Updates

Related Blogs


Leave a Comment
Your Name *
Your Website
Your Comments *
 
 
 
Search Blogs
 
Follow us on Twitter
Join us on Facebook
Blog RSS
Our Bloggers
Add to Google Circles
Blog Archive
Industries (135)
News (105)
Signup for Our Newsletter
Email Address*
First Name*
Last Name*
Monthly
Weekly
Partners & Affiliates

Partner with Benchmark
Join over 15,000 affiliates and make up to thousands of dollars per month!