Re: How to get a phone number to open in sms.

Michell_Bauer
Level 2

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

3 REPLIES 3
Jim_Thao7
Level 9

Re: How to get a phone number to open in sms.

Instead of "sms" try "tel"

Michell_Bauer
Level 2

Re: How to get a phone number to open in sms.

Thanks Jim. When I use tel it opens as a phonecall. I am trying to get it to open as a text message.

Anthony_Figgin1
Level 4

Re: How to get a phone number to open in sms.

I did a test using this code.

<a href="sms://+18016458495?body=I%27m%20interested%20in%20your%20product.%20Please%20contact%20me.">Send a SMS message</a>

And put it on a test landing page. [LINK]

I use a Google Pixel and it worked fine for me. I do know that this functionality is not supported 100%. I would need to do further testing to see what happens on a non supported device.

as far as email, I could not make this work in Outlook or gmail. I would assume the mail clients do not support it.

Hope this helps,

-AF