-1

hello members how r u
another query for u people,

can any body help me in sending sms through code.any kind of help will be highly appreciated...

Votes + Comments
11
Contributors
12
Replies
15
Views
10 Years
Discussion Span
Last Post by tiger86
0

If you are planning to develop a webapp that sends sms then you willl have to get connectivity from a bulk sms providor. They will provide you simple URLs you can use to send SMS. No big deal....

0

The sms gateway will provide you API in various platforms... You just need to make a post/get of your message, to_number etc to their api...

Check out clickatell.com

0

Do you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS.

If not, you can just use internet SMS gateways like clickatell to do the work, and post to them by HTTP, XML or email. The cost is about 6-8 cents per SMS. There are cheaper services, but not always reliable. If you need to host your own GSM device, you can use software like http://www.visualtron.com or http://www.kannel.org (GPL Open Source). Alternatively, you may obtain a shortcode from your Telco - but these come with monthly subscription of maybe one or two hundreds. :)

Regards,
<sniped>

0

To send sms using rails you will need to interface with a sms provider such as mx telecom for example.

The just connect to their REST interface and send the sms's

0

Hi,

I'm currently working on this. I see that Ruby has support for ASMX web services SNIP, and therefore shouldn't have a problem, once I get to grips with Soap4r.

See in 30 mins, I should have something posted on the blog, SNIP

Watch this space! ...

Dan.

0

Et Violá !

Source code for sending SMS from ruby:

SNIP

OK, for some reason, a moderator is removing the download link for the source code for sending SMS from ruby, so I can post the basics of it here, you can find the complete source code with a search "sms ruby freebiesms" in Google.

server = 'http://example.com/sendsms.asmx'

service = SOAP::RPC::Driver.new(server, RechnerServiceModule::InterfaceNS)

service.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace
RechnerServiceModule::add_method(service)

result = service.SendSms("Bob","004478660xxxx","00447866xxxxx","Hello From Ruby","en-GB")

(Replace xxxx with the mobile number)

That's the absolute basics, for the full code, just search for "sms ruby freebiesms" in Google.

Edited by Ezzaral: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.

0

I used clickatell API through SMTP then all you need to do is use mailer to send then the text message as the body of the email to the specefic address as per guide lines on their website

http://am.rubyonrails.org/ for help on using mailler action

Edited by osirion666: n/a

0

I'd like to thank the monitors for snipping out that sms link since it is more of an ad than free source. Your company charges for the use of "free sms".... how can you call it free if you charge for it?? anyways thanks mods!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.