We're making it easier to get around Constant Contact with a brand new left navigation. Not all accounts have that change yet, so if your navigation looks different from our articles, that's why–but everything from the top can now be found on the left!

Email and Digital Marketing
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Add personalization to a custom code email

Article: 000033241
Updated: December 22, 2023

Insert personalized contact details into a custom HTML code email

Exclamation Point IconImportant: This article requires you to use HTML code. 
 

If you collect personal details from your contacts, such as their first name, city, or state, you can easily personalize your custom code email by inserting a Personalization tag and each contact will see the information specific to them! You can also insert account details, such as your organization name or address, that gets pulled directly from your Constant Contact account.

 
Light Bulb IconDid you know? If your website has unique page URLs based on certain contact details, custom fields, or account details, you can personalize your email further by adding dynamic links!
 

Insert a personalization tag

It’s easy to add contact or account details to your email in the Custom Code editor:

  1. Within the HTML, place your cursor where you want to add the personalized detail and click Insert > Personalization.

    Insert dropdown and Personalization option
     
  2. From the first drop-down, select whether you want to insert a Contact Detail or Account Detail.
  3. From the second drop-down, select the detail you want to add.
    Important: Personalizing your email beyond just a name can really appeal to each contact's unique interests. Custom fields let you add personalized information other than the standard contact details. Any custom field you've created in your account will appear in the Contact Details drop-down list.
  4. (Optional) In case you don't have the selected contact detail on file for all of your contacts, enter secondary text in the Fallback field. This text will only display for email recipients who are missing the information.
  5. Click Insert.

    Personalization fields and Insert button
     
 

See an example of an email with personalization tags

When you preview your email, the contact detail displays the information from your account profile to give you an idea of what your contacts will see. When you send your email, the contact detail displays the unique information you have on file for each contact.

 
Personalization tag in an email draftPersonalization in a sent email
 Custom code email with personalization placeholder Custom code email with personalized contact detail
 

View a list of supported personalization tags

If you want to add personalized contact or account details to your HTML yourself, simply use the tag code from the list of supported tags below.

  • Capitalization isn't important. As long as the text is correct, the system recognizes it properly.
  • To include secondary text that displays if the contact detail is unavailable, use: [[FieldName or “Fallback text”]]
 

List of Contact Details

Contact DetailTag Code
First name[[FirstName]]
Last name[[LastName]]
Company[[CompanyName]]
Job title[[JobTitle]]
Address line 1[[AddressLine1]]
Address line 2[[AddressLine2]]
Address line 3[[AddressLine3]]
City[[City]]
State name[[StateName]]
Postal code[[PostalCode]]
Home phone[[HomePhone]]
Work phone[[WorkPhone]]
Birthday[[Birthday]]
Anniversary[[Anniversary]]
Email address[[EmailAddress]]
Custom field[[custom.field_name]]

(Replace the text in red with your custom field name. If there are spaces in your custom field name, substitute them with underscores.)
 

List of Account Details

Account DetailTag Code
Organization name[[account.OrganizationName]]
Website address[[account.SiteURL]]
Logo URL[[account.LogoURL]]
Address line 1[[account.AddressLine1]]
Address line 2[[account.AddressLine2]]
Address line 3[[account.AddressLine3]]
City[[account.City]]
State name[[account.State]]
Two-letter state[[account.usState]]
Country[[account.Country]]
Country code[[account.CountryCode]]
Postal code[[account.PostalCode]]
Signature name[[account.signaturename]]
Signature email[[account.signatureemail]]
Signature image URL[[account.signatureImageURL]]


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center