I wanted to be able to send SMS from the command line to my phone automatically (e.g. to get notified of certain emails). I use Cablecom, which offer the service of sending SMS through a web interface to subscribers. I found smssend (a seemingly dead package, but still available in some distributions), which has a scripting mini-language to allow writing plugins for any web-based service, but I could not get it to work. Finally, I decided to write it from scratch using Perl’s WWW::Mechanize package, and it turned out to be extremely easy. I borrowed the logic from SwissSMS (which is extremely nice and includes a hispeed.ch plugin, but it’s a GUI-only program).
Download the script: hispeedsend.pl. You also need the WWW::Mechanize and Crypt::SSLeay (for SSL support) packages.
How to use it:
hispeedsend.pl [--login=login] [-pass=pass] phonenumber message
You can hardcode the login and password in the script to avoid specifying them every time – see the top of the script.
3 responses so far ↓
1 Nicolas Seriot // Jun 29, 2008 at 9:29 pm
Hello, SwissSMS is not a GUI only program.
You can use it from command line, as explained in SwissSMS help page.
$ SwissSMS -s HispeedCH -r 0791234567 -l myLogin -p myPassword < message.txt
2 Hitchhiker // Jun 29, 2008 at 9:51 pm
Nicolas, thank you! I had never realized that – or looked at the help, obviously
3 wan // Jul 28, 2008 at 8:26 pm
U can also try this web site Send Free Sms From Pc To Mobile