Fail to send an email with tokenized link | Community
Skip to main content
New Participant
May 28, 2021
Solved

Fail to send an email with tokenized link

  • May 28, 2021
  • 1 reply
  • 4621 views

I would like to use an external link with Marketo id being tracked in my email.

 

The token: {{my.Marketoid}} is as follows,

#set ( $mylink = "www.wjx.cn/vj/hDlbBiY.aspx?sojumpparm=${lead.Marketo_ID}" ) <a href="http://${mylink}" style="color: #FFFFFF">Survey</a>

 

It works well in the preview and sample email, but I cannot send a real one via a smart campaign.

 

 

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 SanfordWhiteman

Thanks for your reply.

 

I didn't receive any notifications. But when I look at the "Results" of the batch campaign, it shows nothing. I suppose this time we have to find another way out. 

 

If you have other methods to track users' responses to a survey, please kindly share them with me. Appreciate it a lot!


Take out the Send Email step and replace it and replace it with something easy to trace like a Change Data Value that sets a Datetime field to {{system.datetime}}. Don't make any other changes and run it for the exact same lead you were just testing with. What happens?

 

If you have other methods to track users' responses to a survey, please kindly share them with me. Appreciate it a lot!


I don't actually understand why you've chosen to use Velocity in this case. It's a lead field, and it presumably doesn't require encoding (you aren't running it through $esc.url()), so the link can be right in the email content with a {{lead.token}} in the query string.

1 reply

New Participant
May 28, 2021

Hi there

 

When you say "you cannot send a real one", what is the exact error you are seeing? Is the email failing to send, and you receive an error? Or is the link not output correctly?

 

Thanks!

HongyanJiAuthor
New Participant
May 28, 2021

There isn't an error notification at all. I just cannot receive the email finally.

I can run the "send email" batch campaign, but Marketo even has no record of sending that email.

Katja_Keesom
Community Manager
May 28, 2021

Did you add your personal record to the database? Make the email operational? Have you set your smart campaign to allow for your database record to flow through every time?

Sounds like the issue may not be with the script so much, but with your sending process.