I've been using a cheap Tracfone for a long time and can use it for text message alerts. Below is a basic test email vbscript and batch file that will send a text message to the phone via the tracfone email gateway. I use this in Just basic application I made to send alerts to the phone. To use this one needs an email connection to the internet to send the email message to the gateway. Most cell phone providers have the email to SMS gateways. One can add another line to send an attachement such as a .jpg if the phone supports displaying attachements (beyond my old $10 tracfone doesn't). Below is the link for more info on the vbscript. In the batch file below, disregard the board auto html highlighting of some of the line.
http://www.paulsadowski.com/WSH/cdo.htm
SMS.bat, single line, with phone # and stuff removed:
@echo off
cscript.exe email-test1.vbs me@home.net xxxyyyzzzz@txt.att.net "Just Basic email test" "Did it work?" smtp.myisp.net me@home.net password
====================================
email-test1.vbs with attachment line left out:
Set objArgs = WScript.Arguments
Set objEmail = CreateObject("CDO.Message")
objEmail.From = objArgs(0)
objEmail.To = objArgs(1)
objEmail.Subject = objArgs(2)
objEmail.Textbody = objArgs(3)
with objEmail.Configuration.Fields
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = objArgs(4)
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = objArgs(5)
.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = objArgs(6)
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 25
.Update
end with
objEmail.Send
http://www.paulsadowski.com/WSH/cdo.htm
SMS.bat, single line, with phone # and stuff removed:
@echo off
cscript.exe email-test1.vbs me@home.net xxxyyyzzzz@txt.att.net "Just Basic email test" "Did it work?" smtp.myisp.net me@home.net password
====================================
email-test1.vbs with attachment line left out:
Set objArgs = WScript.Arguments
Set objEmail = CreateObject("CDO.Message")
objEmail.From = objArgs(0)
objEmail.To = objArgs(1)
objEmail.Subject = objArgs(2)
objEmail.Textbody = objArgs(3)
with objEmail.Configuration.Fields
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = objArgs(4)
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = objArgs(5)
.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = objArgs(6)
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 25
.Update
end with
objEmail.Send
Comment