Using email address as default in token not working | Community
Skip to main content
November 17, 2015
Question

Using email address as default in token not working

  • November 17, 2015
  • 2 replies
  • 3486 views

Hi Marketo community. My token is a hyperlink to a URL, and I attempted to make the token default go to an email. I have not been able to get the default to send an email. I have tried both "default=mailto:emailaddress@domain.com" and I'm not having any success with either method. I've pasted the HTML below. Any tips? When I hover over the link where it is defaulted, the correct email address appears, but clicking on it from both outlook 2013 and native apple mail app do nothing. Thanks.

Oh, also the token URL when populated works as expected.

href="{{lead.Primary Account Rep Schedule URL:default=mailto:xyz@domain.com}}"

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

2 replies

Justin_Cooperm2
Level 10
November 17, 2015

Just add:

<a href="mailto:{{lead.Email Address:default=xyz@domain.com}}" class="mchNoDecorate">Test Email</a>

You want "mchNoDecorate" only if you don't wish to track this link click (most people don't if it's just an email button).

November 17, 2015

I would try that if the main token wasn't linking to a URL, not an email. So the main action I want them to take is linking to a URL, the default action would be replying to an email. I am trying to keep the email to just the default area.

Grégoire_Miche2
Level 10
November 17, 2015

Hi Melyssa Mendoza,

I would create a formula field in Marketo and try to use it.

The formula would be :

if Primary Account Rep Schedule URL is empty, then mailto:xyz@domain.com, else, use Primary Account Rep Schedule URL.

and then use the formula field directly in te href.

Please note that, since your href will not contain visible "", Marketo will not be able to detect clicks.

-Greg

Grégoire_Miche2
Level 10
November 17, 2015

Hi again Melyssa Mendoza​,

The last option will be a short velocity script that should surely do the trick.

-Greg

November 17, 2015

I will try both out and report back. Thanks again!