Using double-nested variables
Mailmeteor’s double-nested variables let you take personalization to the next level. With this feature, you can include variables inside other variables, enabling more dynamic and reusable content blocks in your email campaigns.
-
In your spreadsheet, add a column named
EmailOutput
with content like:Hello {{ FirstName }}, Thanks for being a valued customer at {{ Company }}!
-
Reference the outer variable in your email template.
{{ EmailOutput }}
-
When you send your campaign, Mailmeteor first inserts the
EmailOutput
content, then replaces{{ FirstName }}
and{{ Company }}
with the correct details for each recipient.
Example
Let’s look at a practical example to better understand how variables are resolved.
Your spreadsheet structure:
EmailOutput | FirstName | Company |
---|---|---|
Hello {{ FirstName }}, thanks for choosing {{ Company }} today! | Alex | GreenTech |
Hello {{ FirstName }}, thanks for choosing {{ Company }} today! | Priya | BlueLabs |
Your email template:
{{ EmailOutput }}
Result after Mailmeteor sends the email:
Recipient | Email sent |
---|---|
Alex | Hello Alex, thanks for being a valued customer at GreenTech! |
Priya | Hello Priya, thanks for being a valued customer at BlueLabs! |
Pro tip: A nested variable can also contain another nested variable, and so on (up to five levels deep). This means you can build highly structured, reusable content blocks where each level can personalize even further.
Tips for success
- Name variables clearly so you know what each one contains.
- Test before sending using Mailmeteor’s preview feature to ensure variables resolve correctly.
- Keep your spreadsheet organized for smoother campaign management.