Skip to content

Instantly share code, notes, and snippets.

@mcolyer
Created June 23, 2009 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcolyer/134740 to your computer and use it in GitHub Desktop.
Save mcolyer/134740 to your computer and use it in GitHub Desktop.
# Q: What are the Field Tags that I can add to my messages?
A:
You can easily insert a tag into your email for your contact's first name, last name, phone number, or any other information that you have included for those contacts within your lists. Remember, you need to import this information for all contacts before you can reference it in your emails. If you have fields named:
* firstname
* lastname
* state
then you could include this data in your email with the corresponding tags
* %%firstname%%
* %%lastname%%
* %%state%%
And so on for all fields that you have for your contacts. There are also additional tags for contact information. Note - These tags are special tags and includes an exclamation point.
* %%!contact_email%% - Adds the contacts email address.
* %%!contact_eid%% - Adds the contact's external ID.
Empty Tags
Often times you don't have data for everyone in your list. In this case you should make use of the If-Empty tag. Here we will walk through a common use of it, the opening salutation.
Dear %%if(%%firstname%% is empty,"Customer",%%firstname%%)%%,
This works by checking the first tag indicated, above we are checking %%firstname%%, to see if it is empty. If it is empty then the value in quotes after "is empty," is shown; in our example "Customer". If your first tag is not empty then the second value is shown; here, %%firstname%%.
In this case this function would display "Dear Customer," when the tag firstname is blank and "Dear %%firstname%%," when it's not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment