Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 963
osyan Avatar asked Jun 27 '12 06:06

osyan


3 Answers

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)

like image 191
Yuriy Avatar answered Nov 16 '22 00:11

Yuriy


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

like image 2
Martin Pham Avatar answered Nov 16 '22 01:11

Martin Pham


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

like image 2
Mayur Raiyani Avatar answered Nov 16 '22 00:11

Mayur Raiyani