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!

Community
  • 1
  • 1
osyan
  • 1,518
  • 21
  • 47

3 Answers3

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)

Yuriy
  • 1,922
  • 16
  • 23
2

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

Martin Pham
  • 540
  • 4
  • 10
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

Community
  • 1
  • 1
Mayur Raiyani
  • 715
  • 7
  • 15