Show each contact their own subject line and preview text, based on their contact data, in the same campaign or workflow email.
The subject line and preview text are the first things a contact sees in their inbox. With personalised subject lines, you can tailor both to each contact without building separate campaigns for each audience. It’s available on every account.
What You Can Do
- Use if/else in the subject and preview: Write one subject line with conditions, and each contact automatically gets the version that matches their data.
- Use any contact field: Works with built-in fields such as first name and city, and with your own custom fields, for example
is_vip or owns_course. - Rely on a built-in fallback: The “else” text is shown whenever a contact’s field is missing or empty.
- Use it in campaigns and workflows: Works in regular campaigns and in workflow emails.
How It Works
Wrap the text you want to vary in an if / else / endif block. For example:
{% if customer_first_name == "Ravi" %}Hi Ravi{% else %}Hi there{% endif %}A contact whose first name is Ravi sees Hi Ravi. Everyone else, including contacts with no first name, sees Hi there.
How to Add a Personalised Subject Line
- Open the Details step: Create or edit a campaign (or a workflow email) and go to the Details step.
- Write your subject: In the Subject field, type your subject with an if/else block, as in the example above.
- Add preview text (optional): Use the same if/else format in the Preview text field to personalise the preview line too.
Save: Click Save.

💡 Inbox preview shows the code: The Inbox preview and your campaign list show the subject with its tags. Each contact still receives the personalised version.
More Examples
Greet VIP customers differently, using a custom field:
{% if is_vip %}Your VIP early access is here{% else %}Our new collection is here{% endif %}Personalise by city:
{% if city == "Toronto" %}Toronto, this one’s for you{% else %}This one’s for you{% endif %}Good to Know
- Tags count toward the limit: The tags count toward the 150-character limit for the subject and the preview text. Keep conditions short.
- Matching is case-sensitive: “Ravi” and “ravi” are not the same. Match the value exactly as it’s stored on the contact.
- Always include an else: The else text is what contacts with missing or empty data see, so it should work on its own.
- Test sends use default values: A test send uses your account’s default values, not a specific contact’s data. To check each version, send to a small segment of real contacts with different values.
- Nothing changes for other emails: Emails that don’t use if/else in the subject or preview work exactly as before.
⚠️ Check your spelling: If a field name is misspelled, the condition can’t match and every contact sees the else text.
FAQ
Why did everyone get the same subject line in my test?
Test sends use your account’s default values. Send to a small segment of real contacts to see each version.
Why did a contact get the “else” version?
Their field is empty or missing, or the value doesn’t match exactly. Matching is case-sensitive.
Can I use this in workflow emails?
Yes. It works the same way in campaigns and workflow emails.
💬
Need a hand? Contact
tinyEmail support with your campaign name and the subject line you’re setting up, and we’ll check it with you.