Hi there,
Is it possible to use a personalization token as the default value (of another personalization token) in a marketing mail ?
For example, we use the token “First Name” but if the value is unknown we would like to use the token “Email adress”.
I have looked at the smart rules component but I’m not sure it be relevant for this particular use case.
Thanks in advance.
Best regards
Thomas
Hi @ThomasVallée ,
We can’t set the global defaults to the email address of the contact if its first name is missing because both of these are two different properties.
- However, you can set a Global default value for the first name property if it is missing and that default value will be visible for the contact.
- Go to Setting > Marketing > Emails> Personnalization> Contact Property Defaults > Edit Defaults
I hope it helps!
Thank you.
Reference article: Create default values for personalization tokens
Hi @deepikaverma,
Thank you very much for your answer, unfortunately that’s not exactly what I was looking for
.
Do you think it’s absolutely impossible to use a personalization token as a default value, even with some code ?
Best regards,
Thomas
Hi @ThomasVallée
I don’t have much experience with programmable emails however @karstenkoehler has given the alternative of the smart content rule.
Thank you!
Hi @ThomasVallée,
This is not possible via personalization tokens directly, I tested this just now. If you add {{ contact.email }} (the syntax for the personalization token) as the default value of another property, it simply resolves into an empty box in the recipient’s inbox:
It might be possible to achieve this with programmable email but there’s actually an easier way. Simply create a smart rule in your marketing email: Create and manage smart content rules
You would have to create a list first that populates with all contacts where the first name is known. You can then set up a smart rule in your email: show first name when contact is in this list. Show email address when contact is not on the list.
Hope this helps!
Hi @karstenkoehler,
Thank you for taking the time to do some tests and to help me.
I tried different syntaxes as well but none worked.
When previewing an email from the marketing emails list, the syntax is a little bit different from what you can see when editing the content (see below) :

I thought I might found a workaround but unfortunately I’m still a Hubspot rookie
.
With a heavy heart, I will consider creating and using a smart rule…
Once again, thank you @deepikaverma and @karstenkoehler !
Best regards,
Thomas
Hello. I did try to do the same thing and if you add this to an HTML block {{ contact.firstname }} I get the firstname out. I know it’s not exaclty what you were looking for but maybe you can use that somehow 