homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Website link to open sms

5+ Year Member

Msg#: 4266561 posted 7:49 pm on Feb 13, 2011 (gmt 0)

Hi, can anyone help?

I would like to add a 'link' to a webpage that when clicked on a mobile phone it opens a sms message to send.. (this I can do)... BUT I would like to be able to add a message or the website url within that text message and for it to already be there when the sms opens up.

This opens up a sms on my mobile... and shows the text "Send sms" on the webpage. BUT this also comes up with a page error if clicked on by anyone using a desktop...

<a href="sms:?body=hello world">Send sms</a>

Does anyone know the code as to how to do this?



WebmasterWorld Administrator incredibill us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4266561 posted 8:10 pm on Feb 15, 2011 (gmt 0)

This is going to be harder than you think, check out the SMS compatibility table on this page for various mobile browsers:

The problem with the desktop machines is there is no SMS gateway available to the browser.

You would need some SMS API service like [clickatell.com...] to send via HTML on a desktop and that'll cost you about $0.025 per message. Alternatives would be directly connecting to SMS services on your server via a POST message and some server side code which would then work whether it was mobile or not, but your site might incur those costs unless you can find a free gateway.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved