tags:

views:

60

answers:

2

Is is possible to send an SMS message out of a batch script in Windows? Any SMS gateway, that supports it? etc.

+2  A: 

If you have an iPhone that you are willing to jailbreak, you can find a package in Cydia called SendSMS. You will also need to install OpenSSH. After you have done these, you can use putty (more specifically plink) to SSH into your iPhone, execute SendSMS as it's initial command and then close. This can all be done from a BAT file.

plink -pw alpine -ssh [email protected] sendsms +61400000000 Testing

Replace alpine with whatever you set your SSH password to (alpine is default), [email protected] with root@--your iPhone's IP address--, +61400000000 with the number you are going to send to, and Testing with your message.

Make sure you haven't set a different host or port as default settings in Putty, or you will get strange results.

Plink can be found here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Please note that the cost of the SMSs will be charged to your phone

OpenSS
A: 

Most SMS enabled phones also are enabled to recieve SMS messages via email. The phone usually has an address such as [email protected], though it varies by carrier. Using this, you can set up your batch script to send an email to the phone, which arrives as an SMS message. At my last job, this is how servers were set up to send alerts to the support staff.

I have seen other options for setting up sending an actual SMS from a machine, but every example I saw required attaching a GSM enable device to the machine via serial, bluetooth or USB to be used as essentially a modem to send the messages.

BBlake