Creating Tokens for Emails | Community
Skip to main content
Danielle_Wong
Community Manager
April 6, 2016
Solved

Creating Tokens for Emails

  • April 6, 2016
  • 1 reply
  • 3398 views

I am wondering how I would go about creating a campaign with one email going to a list. But some of the sentences will change depending on the location of the lead.

For example, a lead in NJ receiving an email at 12pm, will have a sentence that says: I hope you have a great afternoon!

While a lead in CA receives the same email at 9am, but instead their sentence will say: Good Morning, hope you're day is off to a great start!

and so on....

Is this possible?  If so, how?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

Hi Danielle,

this falls under "dynamic content". You can achieve that in a few ways, basically by segmentation/snippets or emails script tokens. But in any case, your database needs to be able to support this, meaning you need to have values for every contact in "City" or "State" or "Time Zone" or whatever information you might want to base your logic on.

If you go with email scripts - which I consider usually to be a little easier - you might end up with something like this in an email script token:

#if(${lead.State} == "California")

#set($hello_line = "I hope you have a great afternoon!")

and place $hello_line in your email.

But I'd advise to search this place here for Dynamic Content and dig into it.

1 reply

Accepted solution
April 6, 2016

Hi Danielle,

this falls under "dynamic content". You can achieve that in a few ways, basically by segmentation/snippets or emails script tokens. But in any case, your database needs to be able to support this, meaning you need to have values for every contact in "City" or "State" or "Time Zone" or whatever information you might want to base your logic on.

If you go with email scripts - which I consider usually to be a little easier - you might end up with something like this in an email script token:

#if(${lead.State} == "California")

#set($hello_line = "I hope you have a great afternoon!")

and place $hello_line in your email.

But I'd advise to search this place here for Dynamic Content and dig into it.

Danielle_Wong
Community Manager
April 6, 2016

Okay, thanks Michael for the valuable information. I will look into more information on Dynamic Content and hopefully be able to implement it in my emails. Very exciting to learn new things in Marketo!

Thanks again!