send SMS from WAP page

Posted by user217069 on Stack Overflow See other posts from Stack Overflow or by user217069
Published on 2010-05-25T22:56:21Z Indexed on 2010/05/25 23:01 UTC
Read the original article Hit count: 320

Filed under:
|
|
|
|

This question is related to sending an SMS from a link in a WAP page?

Historically I have used sms: which has worked on SonyEricsson, Nokia and other such 'legacy' devices. An example of the mark-up would be;

<a href="sms:0123456789?body=test%20message">send</a>

I am aware that i-phone does not allow you to specify the body. If the body tag is present then the device closes the browser and opens the SMS application but does not go as far as taking the user to message creation. As such the following does not really work;

<a href="sms:0123456789?body=test%20message">send</a>

however, this partially does... in that it takes the user to the editor and selects the recipient.

<a href="sms:0123456789">send</a>

My tests with Android (HTC desire) cause the message editor to crash (with the above examples). I have managed to get the message editor to open successfully but not managed to pass any details (recipient or message body) using;

<a href="sms://0123456789">send</a>

Note the :// which is not correct according to the Nokia specs. Has anyone had any more success?

Sorry if this is a bit hazy, its probably more of a discussion than a question.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about XHTML