Sending SMS using python script

171 views
Skip to first unread message

guptha

unread,
Apr 2, 2009, 12:41:09 AM4/2/09
to
hi group,
my application needs to send SMS occasionally to all the clients .Is
there any library in python that supports in sending SMS.
I like to conform few information i gathered in this regard.

I can send SMS by two ways

1. Sending SMS using Email clients
2. Using sms gateway to send message(we can implement SMS Gateway API
's ,provided by vendor and ,send SMS -- we will be charged
accordingly )

In case of First approach
1. We can make use of libgamil library to send SMS using gmail ( I
ref : http://blog.datasingularity.com/?p=63 )
i suppose sending sms through gmail is not supported in India
2. Can we use Skype4py library,

In case of second approach
1. Is there any way to send SMS for free inside India ,or ,Any free
SMS gateway providers in India
Any information regarding this is appreciable
Thanks

Matteo

unread,
Apr 2, 2009, 3:41:32 AM4/2/09
to
I use a programme, written in Python, which sends sms through the sms
providers. You might want to have a look to the source code:

http://www.moioli.net/Progetti___1/MoioSMS___Messaggi_GRATIS_da_Internet____22.html

guptha

unread,
Apr 2, 2009, 6:47:18 AM4/2/09
to
On Apr 2, 12:41 pm, Matteo <tadweles...@gmail.com> wrote:
> I use a programme, written in Python, which sends sms through the sms
> providers. You might want to have a look to the source code:
>
> http://www.moioli.net/Progetti___1/MoioSMS___Messaggi_GRATIS_da_Inter...

Thanks for your reply Matteo
It will be more helpful if you mention the concept of your programme.
i.e .How your programme works(I can't understand the posting from your
site - is not in English)

As for my knowledge on this subject i can say
1. The sms send by us will reach SMS center of the service provider
(example : Airtel , Vodofone etc)
2. Each service provider has their own SMS center
3. From SMS center the message reach to the recipient.

In this scenario how can i make use of service providers SMS center to
send my sms
Is it possible to write our own sms gateway in python to interact with
all type of sms centers.
Do we have pay any charge to access providers SMS center, or comes
free of cast.

i supposes Most of mobile carriers offer free Email To SMS gateways
which can be used to forward simple text emails to a mobile phones.
Thanks

Matteo

unread,
Apr 2, 2009, 9:08:07 AM4/2/09
to
I don't really know, because I didn't write it myself ;)
I think it basically logs in into a service provider site with pycurl,
follows the right links, reads captcha's and writes an SMS, which is
then sent by the provider itself.

I can give you the direct link to the source code from the same site:
http://www.moioli.net/files/MoioSMS2.18-src.zip

Brent Bloxam

unread,
Apr 2, 2009, 2:18:01 PM4/2/09
to pytho...@python.org
> --
> http://mail.python.org/mailman/listinfo/python-list
>
While this may not be exactly what you want to do, I thought I'd offer
this as an alternative. MultiModem has a hardware product that works as
a GPRS modem (with either a serial or ethernet interface, see here:
http://www.multitech.com/PRODUCTS/Families/MultiModemGPRS/), allowing
direct access to standard AT commands. The modems require a regular SIM
card with an account setup for it. For our needs we got a basic plan
with unlimited SMS. This is after we went with a couple 3rd party SMS
gateways and found their delivery unreliable for our clients.

I've written a daemon in python called mmsmsd (multimodem sms daemon)
for their ethernet model (MTCBA-G-EN-F4). It queues messages via an HTTP
GET request, which are then handled by threads that maintain telnet
connections to the GPRS modems AT command interface. You can check out
the project here: http://code.google.com/p/mmsmsd/ (it's BSD licensed)

If you go this route, feel free to submit any bug reports or requests.
If anyone out there feels like doing a quick audit of the code, that
would be appreciated as well :) This is my first project with Python.

--
| .-> brent bloxam ~-. brentb @ beanfield.com
| ( ) beanfield metroconnect
| `~- wgxolq +uajq <-' 416.532.1555 ext. 2004
--

ISF (Computer Scientists without Frontiers, Italy)

unread,
Apr 3, 2009, 1:50:15 AM4/3/09
to
On 2 Apr, 06:41, guptha <gjango...@gmail.com> wrote:
> hi group,
> my application needs to sendSMSoccasionally to all the clients  .Is

> there any library in python that supports in sendingSMS.
> I like to conform few information i gathered in this regard.
>
> I can sendSMSby two ways
>
> 1. SendingSMSusing Email clients
> 2. Usingsmsgateway to send message(we can implementSMSGateway API
> 's ,provided by vendor and ,sendSMS-- we will be charged

> accordingly )
>
> In case of First approach
> 1. We can make use of libgamil library to sendSMSusing gmail ( I
> ref :http://blog.datasingularity.com/?p=63)
> i suppose sendingsmsthrough gmail is not supported in India

>  2. Can we use Skype4py library,
>
> In case of second approach
> 1. Is there any way to sendSMSfor free inside India ,or ,Any freeSMSgateway providers in India

> Any information regarding this is appreciable
>   Thanks

A friend from India sent me this hint:

the following link can be explored further for sending SMS on pyS60
(python for symbian OS)
http://mobilenin.com/pys60/menu.htm

wkr,
Aldo

Craig

unread,
Apr 3, 2009, 11:27:50 AM4/3/09
to
There's a Python wrapper to the Skype API here:
http://sourceforge.net/projects/skype4py/
On Linux I've used the PyGTK GUI that uses this. It's called
SkySentials here:
http://www.kolmann.at/philipp/linux/skysentials/

Craig

On Apr 3, 6:50 am, "ISF (Computer Scientists without Frontiers,

Reply all
Reply to author
Forward
0 new messages