Re: Sending SMS from rails

Clickatell is easy enough to use but cost about .064 / message.

You just need to post to a url
uri_str =
http://api.clickatell.com/http/sendmsg?user=&password=&api_id=&to=&text=Test+from+textagog+-+testing+how+long+a+sms+takes
response = Net::HTTP.get_response(URI.parse(uri_str))

then check the response for Net::HTTPSuccess and look for the clickatell
confirmation ID

if response.body =~ /^ID:/

----- Original Message ----
From: Jason R. [email protected]
To: [email protected]
Sent: Tuesday, March 4, 2008 9:43:41 AM
Subject: [Rails] Re: Sending SMS from rails

For the record, all carriers have an email SMS system.

Sprint: [10-digit number]@messaging.sprintpcs.com
Cingular / ATT : [number]@txt.att.com

These services are of course free, and subject to limitations and
possibly delays. If you need to send a ton of SMSes out, or need
guarenteed quick delivery, you’ll need to look into an SMS gateway
service like clickatell.

Jason

Thank you all, I’m already using a gateway and everything in fine in
terms
of sending messages from my app, my last question was just about the
Unicode
issue.

Thanks

On 04/03/2008, Mark S. [email protected] wrote:

Sprint: [10-digit number]@messaging.sprintpcs.com

Hi,
Thank you very much for your helpful suggestions.

username=xxxx&password=xxxx&mno=999999&msg=Hi from
exposed in a way or another to some bad user? Is there something
Fred

Yes. But it’s part of the standard ruby library and you won’t get

http://www.domain.com/sendsms/sendsms.asp?username=xxxx&password=xxxx&mno=999999&msg=xxx

method to the Message model which does the necessary dtugg.

   flash[:notice] = 'Message was successfully created.'


Anas Marrawi
Visit me at: www.anasonline.net