Include Option to add Subject Line to Mailto: Links | Community
Skip to main content
Alyssa_Hoffmann
Level 2
May 17, 2019
New

Include Option to add Subject Line to Mailto: Links

  • May 17, 2019
  • 2 replies
  • 6421 views

When linking a mailto: link, add the option to include a subject line within the dialog box. There is currently a way to do this using a third party website however it would be useful if we didn't need to leave Marketo to do this. 

2 replies

Josh_Hill13
Level 10
May 18, 2019

You can do this and it's always been available in html

mailto: josh@nowhere.com?subject=I'd like to purchase your product right now

Alyssa_Hoffmann
Level 2
May 20, 2019

Thanks for your reply Josh. This way is certainly easier than the third-party website we were using to generate the code. As many of our users aren't HTML-savvy at all, I still believe it would be easier to simply include in the pop-up dialog box. 

SanfordWhiteman
Level 10
May 20, 2019

In fact, if you don't URI-encode special characters in the subject you'll break the link (this is equally true of any URL). So you can't just type the URL from scratch.

Compare unencoded:

<a href="mailto:sandy@figureone.com?subject=Time for tea & crumpets">1</a>‍‍

And properly encoded:

<a href="mailto:sandy@figureone.com?subject=Time%20for%20tea%20%26%20crumpets">2</a>‍‍


 

Encoding can be done in a Velocity token.

And always, always add class="mktNoTrack" to your mailto: links if you want them to actually work!

February 4, 2020
No text available