473,554 Members | 2,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 18780
Fazer <fa****@jaredwe b.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***@jabbe rpl.org http://zgoda.jogger.pl/
Jul 18 '05 #2
Jarek Zgoda <jz****@gazeta. usun.pl> wrote in message news:<bj******* ***@atlantis.ne ws.tpi.pl>...
Fazer <fa****@jaredwe b.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**********@j aredweb.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***@jabbe rpl.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***@jabbe rpl.org http://zgoda.jogger.pl/
Jul 18 '05 #6
Jarek Zgoda <jz****@gazeta. usun.pl> wrote in message news:<bk******* ***@nemesis.new s.tpi.pl>...
Fazer <fa**********@j aredweb.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.or g> 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***@jabbe rpl.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

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

Similar topics

1
14497
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 headers). I can see this because I'm running Ethereal and watching the packets. I'm defining the packets as shown below: $text_msg = "Hello,...
0
522
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 import mimetypes import os,string
10
4951
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 working with we put these mailshots in the bcc field of the mails. This can sometimes cause a problem as we are getting alot of mails bounced back. I...
3
4617
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 and then fires a datareceived event. Within the waitingloop there is a timeout function, but I want the the 'last-time-socket-used' variable set...
4
8193
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 TcpClient, NetworkStream and StreamWriter classes. but with low level socket it doesn't work (When using the Socket class Send method).
7
3505
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 administrator told me to write the emails to the “pickup directory” instead. I know that JMail can do this in ASP, but how do you do this in...
3
3601
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 smtpMail.Send("from@here.com", to@there.com, "Message subject", "Message Body") I'm sending it to my own email address on a different server using...
0
1852
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 one,then whethere we can show the progress of each file sending to server in progress bar. so that the FTP clients can see the progress of file...
9
3441
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 oSMTP.Send(oMailMessage) (in this line I am getting the above err)
4
2386
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 working fine. However I was wondering if there is a way to confirm that the email was sent. The send method does not return anything....
0
7808
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7893
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6156
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5162
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3556
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2022
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
845
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.