Let user that use mobile browser to send the code of product they want by SMS
Asked Answered
W

3

11

I'm going to use a method to let user that use mobile browser to send the code of the product they want by SMS. Currently I use something like:

<a href = 'sms:7xxxxxx?body=product-number23xx'>Buy product-number23xx</a>

<a href = 'sms:7xxxxxx?body=product-number24xx'>Buy product-number24xx</a>

<a href = 'sms:7xxxxxx?body=product-number56xx'>Buy product-number56xx</a>

It works on Symbian and Java platforms but it doesn't work correctly on all mobiles platforms like Darwin, Windows CE, Mobile OS. Any body can help me to say the sample code for other platforms?

I also see this question and I tried mailto: and tell: but the first one opens email client and the second one just add the number to that mobile contacts!

Wilde answered 27/6, 2012 at 6:38 Comment(3)
Well it is either implemented or not ):Titustityus
Have you tried all this, beradrian.wordpress.com/2010/01/15/special-linksAgnella
@Agnella Nice comment. Now I'm working on thatWilde
A
2

Try "smsto:", some older browsers support it. I also believe that the detailed information regarding specific devices is available via WURFL (https://db.scientiamobile.com)

Ailment answered 27/6, 2012 at 9:2 Comment(0)
S
2

iOS SMS URL scheme (sms://) doesnt support embed body !

Selfimportant answered 2/7, 2012 at 8:48 Comment(0)
F
2

You need to update links for Android users.

i.e. if client browser is android then you need to configure link as below.
<a href="sms:+19725551212?body=hello%20there">SMS Me</a>

Ref: SMS URL on Android

Formless answered 4/7, 2012 at 10:48 Comment(1)
Not completely the answer but a helpful one. so i award bounty to you.Wilde

© 2022 - 2025 — McMap. All rights reserved.