Josh Frank
Josh Frank

Reputation: 95

How to text/sms a chunk of text from a site to a phone?

I want to take chunks of text from my site and allow people to text it to their phone. Similar to the "tweet this" buttons next to snippets of text, I am looking for a "text this to me" button.

Not looking for someone to do it for me, just point me in the direction. Is this something that can be accomplished with Twilio?

Upvotes: 1

Views: 169

Answers (3)

Michael Cook
Michael Cook

Reputation: 1707

If you are looking at Twilio, I'd start with their quickstart sms example, which uses PHP, though this should be able to be accomplished in just about any language of your choosing.

http://www.twilio.com/docs/quickstart/php/sms

Upvotes: 1

imbondbaby
imbondbaby

Reputation: 6411

Clickatell is a popular SMS gateway. It works in 200+ countries.

Their API offers a choice of connection options via: HTTP/S, SMPP, SMTP, FTP, XML, SOAP, COM Object.

The HTTP/S method is as simple as this: http://api.clickatell.com/http/sendmsg?to=NUMBER&msg=Message+Body+Here (Clickatell API Guide).

The SMTP method consists of sending a plain-text e-mail to: [email protected], with the following body:

user: xxxxx
password: xxxxx
api_id: xxxxx
to: 448311234567
text: Meet me at home

You can also test the gateway for free from your browser: "Test SMS Gateway"

Upvotes: 0

fuzzybear
fuzzybear

Reputation: 2405

There's plenty of web services out there, search SMS web services, you could talk to most of them direct via JS

http://www.twilio.com/sms
http://www.esendex.co.uk/service/web-sms
http://mashable.com/2008/04/19/send-text-messages.'

Upvotes: 1

Related Questions