Skip to main content
Level 2
Jul 21, 2017 4:34 PM UTC
Solved

How to get a phone number to open in sms

In a marketo email I added the Example:  <a href="sms:123456789">123456789</a> tag so when someone sees the email on their phone, they can click the number and it should open up on their messenger. When I sent myself a test I get a 404 page not found error. When  I removed the tracking nothing happens when I click the number. Any ideas?

Email client: Outlook

Phone: Samsung Galaxy 7

SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jul 17, 2021 5:11 AM UTC

That’s what I was afraid of, it’s a platform bug specifically with the unrecognized URL scheme.

 

Try it with the whole <a> tag (including <a> through closing </a>) in a Text {{my.token}}, still including the class="mktNoTrack". If that doesn’t work, put it in a Velocity {{my.token}}. Let me know the results.

 

EDIT: there’s no such bug, the user is testing in the wrong environment. Not all devices support the sms: scheme is all.

 

 


@talhakhalid see my edit above. I actually don’t see any problem w/Marketo rendering such links in the email at all.

 

Your F12 Inspector isn’t the way to tell if something exists in the raw message Marketo sent, because the mail client is stripping out HTML tags it doesn’t support. You have to use Show Original Message, Show HTML Source, or similar to show the actual message, in which case you’ll see the <a href="sms:...> is indeed output correctly.

 

However, not all devices and mail clients support the scheme. For example, my Outlook for Android doesn‘t; my webmail, viewed on Chrome Mobile on the same device, does.

13 replies

SanfordWhiteman
User Group Leader
User Group Leader
Jul 22, 2017 3:27 AM UTC

Please move the thread to Products​ to continue. This space is for feedback about the Nation website, not support.

Translate
Level 2
Jul 14, 2021 7:38 PM UTC

Kindly tell us what's the solution for this problem when I added the <a href="sms: number here">SMS</a> anchor tag and the user click on number in the email then it is going to the 404 page but it should go the sms screen on mobile.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jul 14, 2021 9:26 PM UTC

Make sure you’re adding the no-track class.

<a class="mktNoTrack" href="sms:+3310203040">
Translate