473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Sending SMS...

Hello,

Can anyone point me to a way on how to send a SMS message using Python?

Thanks,
Jul 18 '05 #1
13 18762
Fazer <fa****@jaredweb.com> pisze:
Can anyone point me to a way on how to send a SMS message using Python?


Use web gateway, like 1rstWap.com. I think it's simplest method.

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #2
Jarek Zgoda <jz****@gazeta.usun.pl> wrote in message news:<bj**********@atlantis.news.tpi.pl>...
Fazer <fa****@jaredweb.com> pisze:
Can anyone point me to a way on how to send a SMS message using Python?


Use web gateway, like 1rstWap.com. I think it's simplest method.


Thanks, but how would I implement that? Any ideas?

Thanks,

Faizan
Jul 18 '05 #3
Fazer <fa**********@jaredweb.com> pisze:
> Can anyone point me to a way on how to send a SMS message using Python?


Use web gateway, like 1rstWap.com. I think it's simplest method.


Thanks, but how would I implement that? Any ideas?


Just send appropriately crafted HTTP request to the gateway's webserver
using httplib. You should analyze page source to get some basic things
like http field names and a name of script, where you should send your
data (form action="script_name").

Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #4
Jarek Zgoda wrote:

Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).


Kind of defeats the value of suggesting that he use this as
a way of sending using Python, doesn't it?

-Peter
Jul 18 '05 #5
Peter Hansen <pe***@engcorp.com> pisze:
Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).


Kind of defeats the value of suggesting that he use this as
a way of sending using Python, doesn't it?


Yes - if this should be service/daemon app and you don't have a user
that can perform prior registration.

No - if this will be usual GUI app with user equipped with monitor,
keyboard and mouse, sitting in front of it.

And again no - if you don't need "worldwide" functionality of gateways
like 1rstWap and stick to local telcos.

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #6
Jarek Zgoda <jz****@gazeta.usun.pl> wrote in message news:<bk**********@nemesis.news.tpi.pl>...
Fazer <fa**********@jaredweb.com> pisze:
> Can anyone point me to a way on how to send a SMS message using Python?

Use web gateway, like 1rstWap.com. I think it's simplest method.


Thanks, but how would I implement that? Any ideas?


Just send appropriately crafted HTTP request to the gateway's webserver
using httplib. You should analyze page source to get some basic things
like http field names and a name of script, where you should send your
data (form action="script_name").

Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).

Thanks for your reply. I thought I would have to use sockets but I
guess http would be easier.
Jul 18 '05 #7
Fazer wrote:

hello,
Can anyone point me to a way on how to send a SMS message using Python?


an alternative to the already suggested SMS-webgateway would be to use the
ICQ-SMS-gateway ('worldwide' SMSs, no advertisements).

either use libicq2000[1] directly (but afaik there are no python bindings
yet), or setup a local jabber[2] server with an aim-transport[3] to which
you can connect with python by using jabberpy[4].

cu
/gst

[1] http://libicq2000.sf.net/
[2] http://www.jabber.org/about/overview.html
[3] http://aim-transport.jabberstudio.org/
[4] http://jabberpy.sourceforge.net/

Jul 18 '05 #8
Guenther Starnberger <gs*@sysfrog.org> pisze:
either use libicq2000[1] directly (but afaik there are no python bindings
yet), or setup a local jabber[2] server with an aim-transport[3] to which
you can connect with python by using jabberpy[4].


Shouldn't public Jabber server with AIM transport be sufficient? I never
tried such approach, but it sounds interesting since Jabber is getting
more and more audience here in Poland.

Also, there is another Jabber library available, PyXMPP. Its author
claims it's faster and more robust (it is based on libxml2, not expat).
I didn't tried it yet due to some system inconsistencies (libxml2 is
heavily used by GNOME2 and Python bindings are tightly tied to
particular version of library), but it sounds promising.

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #9
Jarek Zgoda wrote:

hello,
either use libicq2000[1] directly (but afaik there are no python bindings
yet), or setup a local jabber[2] server with an aim-transport[3] to which
you can connect with python by using jabberpy[4].


Shouldn't public Jabber server with AIM transport be sufficient? I never
tried such approach, but it sounds interesting since Jabber is getting
more and more audience here in Poland.


yop - it should be possible, but AOL already blocks some public jabber
servers from login to ICQ/AIM. if people start using large (well known)
jabber servers to relay their SMS for free, it's likely that they soon will
be blocked too :/

cu
/gst

Jul 18 '05 #10
Peter Hansen <pe***@engcorp.com> pisze:
Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).


Kind of defeats the value of suggesting that he use this as
a way of sending using Python, doesn't it?


Ah, and one thing I forgot for the first time -- you are not limited to
"free" gateways. You can always buy a service from your telco.

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #11
Fazer wrote:
Can anyone point me to a way on how to send a SMS message using Python?


If you can read Java APIs, and don't mind working jython, then take a
look
at OpenSMPP, an open source implementation of the SMPP protocol.

The dates may look a little stale, i.e. last work done nearly two
years ago, but I'm fairly sure that most of the core stuff is working
and stable. OpenSMPP was written by Aldiscon (a Dublin company), who
were then taken over by Logica. Logica maintained the Open Source
committment.

http://opensmpp.logica.com/

Then there are various solutions where you can put a GSM card in your
PC, or cables to link an actual mobile handset to your PC, and rx/tx
SMS through those.

HTH,

--
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/mailto/alan
Jul 18 '05 #12
Jarek Zgoda wrote:

Peter Hansen <pe***@engcorp.com> pisze:
Also, be aware, that 1rstWap.com (and many other free SMS web gateways)
require prior user registration, that can not be handled by program
(they show user some picture with text that need to be entered
correctly).


Kind of defeats the value of suggesting that he use this as
a way of sending using Python, doesn't it?


Yes - if this should be service/daemon app and you don't have a user
that can perform prior registration.

No - if this will be usual GUI app with user equipped with monitor,
keyboard and mouse, sitting in front of it.


You're right.... Sorry, I misread your first post as suggesting
that each message, not just the registration, required the human
confirmation. (Yes, you were quite clear in what you wrote....
I must have been skimming or something. :-( )

-Peter
Jul 18 '05 #13
Guenther Starnberger <gs*@sysfrog.org> wrote in message news:<10***************@newsmaster-03.atnet.at>...
Fazer wrote:

hello,
Can anyone point me to a way on how to send a SMS message using Python?


an alternative to the already suggested SMS-webgateway would be to use the
ICQ-SMS-gateway ('worldwide' SMSs, no advertisements).

either use libicq2000[1] directly (but afaik there are no python bindings
yet), or setup a local jabber[2] server with an aim-transport[3] to which
you can connect with python by using jabberpy[4].

cu
/gst

[1] http://libicq2000.sf.net/
[2] http://www.jabber.org/about/overview.html
[3] http://aim-transport.jabberstudio.org/
[4] http://jabberpy.sourceforge.net/


Wow, thanks for the reply! It was really helpful. Exactly what I was looking for.
Jul 18 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
4
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.