script that emails?

donnatronious
donnatronious used Ask the Experts™
on
I installed an intellgent ups on my server.  There is an option under the power options in control panel too run a program per task schedular when the battery is low.  I would like a small program that emails me.  Can a batch file do this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2018
Distinguished Expert 2018
Commented:
You can use blat for that. The command could look something like
blat.exe "YourEmailTextFile" -server some.smtp.server -u SomeUserName -pw SomePassword -f ups@your.domain.com -t your@target.email.com -s "UPS Alarm: Battery low!"
Blat - A Win32 Command Line SMTP Mailer
http://sourceforge.net/projects/blat/

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial