Some time ago I whipped up a quick mobile interface to Touchwork’s M4E system, essentially just a basic portal listing of the event delegates with their assigned CID numbers. However, a new request has now come in that I need to be able to trigger a pre-populated SMS send-out dialogue for any particular CID to our send-in mobile number.
So how does one then actually do this?
The essential layout looks like this: sms:
(Note that for international numbers you would prefix the number with a ‘+’)
And obviously to actually use the above in your web page, you would simply have something like this in your code:
Of course this functionality only really works with the more modern phone web browsers, so older models like my Samsung SGH-E250 simply bring up an ‘incorrectly configured URL’ error when trying to access the link. However, almost all newer phone models seem perfectly happy with this syntax, so quite handy indeed.
(Oh, and another note: To achieve a similar thing like bringing up the ‘phone this number?’ dialogue on your mobile phone, switch out the sms: URI scheme with the tel: URI scheme – sans the body= modifier of course! See, can’t say that I’m not helpful eh?)
Related link: http://tools.ietf.org/html/draft-wilde-sms-uri-12