Include Option to add Subject Line to Mailto: Links

Include Option to add Subject Line to Mailto: Links

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. 

5 Comments
Josh_Hill13
Level 10 - Champion Alumni

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

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 - Community Moderator

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>‍‍

pastedImage_1.png

And properly encoded:

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


 
pastedImage_2.png

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!

Josh_Hill13
Level 10 - Champion Alumni

Yes, that is much more helpful

kh-lschutte
Community Manager
Status changed to: Open Ideas