SMS URL on Android
I have noticed if you use a qrc code with text for mms:<phone_number>?body=<your message here.>
this seem to work and avoid the error: invalid recipient(s)
here is a test qrc http://qrcode.kaywa.com/img.php?s=8&d=mms%3A555-555-5555%3Fbody%3DYour%20Message
That should work:
<a href="sms:+437722735932">contact</a>
href="sms:+xxx" works on my stock HTC Desire Android 2.2 browser and the Sense SMS app, but sms:+xxx?body= doesn't - error: invalid recipient(s). I was only really interested in setting the body - anyone seen / solved this problem?
My test page is here: http://jsbin.com/itama4/15
I found the following which may help you:
https://www.rfc-editor.org/rfc/rfc5724
You can check sub-section 2.5 or 2.6 of this RFC to give you some additional pointers on formulating a proper SMS URL.
Eg. using formal URI-spec as detailed in sub-section 2.2 of rfc5724:
<a href="sms:+19725551212?body=hello%20there">SMS Me</a>
Notice the 'escaped' character for the 'space' in the example above.
Hopefully the Android browser will permit you to generate XHTML forms based on this syntax. I believe they will (if I have some time over the next day, I shall give it a try on my Galaxy S).