views:

1011

answers:

4

I am building an application, where I have this little survey module, which sends out a simple sms to the phone number I give and has to collect the response(if the user fires it) and show it to me. I am using to django build my project. I have tried django-sms google code project, but I couldn't post messages back from my mobile to my server. I have browsed through many tutorials on sms-gateways/carriers. But I am lost. Can anyone help me in suggesting a tutorial about sending sms from my application(django) to any cellphone? And regarding sending sms to cellphone, would it cost me(just as how i send sms from one cellphone to another)?

+3  A: 

take a look at django-sms

bchhun
I tried this, but I couldn't post messages back from my mobile to my server.
Maddy
+5  A: 

From a technical standpoint, the easiest way to accomplish SMS sending with any web-app is through e-mails. Most cell providers usually give out email accounts to their users, and sending a mail to said account will more likely than not redirect the mail to their cell via SMS. However, not all carriers do this and some charge extra for this type of service. In this case, you could handle this checking out the following Django documentation page

However, as mentioned, this isn't a really complete solution, so the easiest way would be to use a SMS-gateway. Mostly, they provide simple REST based API's for sending text messages to cell phones. The API would vary obviously from carrier to carrier. I would recommend checking out Kannel in case you're looking for a free and open source solution (that is assuming you want to install the actual gateway on your server).

Anyway, I would start out trying to get it to work with the e-mail scenario, and then moving on to using a carrier if you actually require it. Hopefully this helps somewhat.

Dave
Thankyou Dave, Let me have a try with Kannel
Maddy
+1 for suggesting Kannel.
ayaz
A: 

Check out twilio.com. They provide easy to use API (couple of lines of code in Python) and possibility to receive SMS messages and firing callbacks in your application when users respond.

Lukasz Dziedzia
A: 

http://bitbucket.org/vgavro/django-smsgate is obviously what you are looking for, but you have to write custom backend for your sms-gateway.