Hello,
Can anyone point me to a way on how to send a SMS message using Python?
Thanks, 13 18804
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/
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
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/
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
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/
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.
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/
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, world\r\n";
$binary_msg = chr(0x01).chr(0x02).chr(0x03).chr(0x00).chr(0xA0);
$binary_msg_size = 5;
|
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
|
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 would like to write a script to have these emails sent
out individually using the to: field of the...
|
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 when the socket is finished sending.
When I send by System.Net.Sockets.Socket.Send(buffer()) (<--this...
|
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).
| |
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 asp.net?
--
--------------------
|
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 a dummy
|
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 sending to the server.
any idea how we can do this to show the progress of each file sending. if we...
|
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)
|
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....
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |