Link to home
Start Free TrialLog in
Avatar of whc4
whc4Flag for United States of America

asked on

Send email on Windows XP startup

I want to send an email message (e.g. "Station 1 just rebooted") to designated recipients every time the machine reboots.  I need it to trigger from a machine startup script (as opposed to a user startup script) as the machine will be unattended.  The machine is a Windows XP box.  I don't need anything fancy - the recipient list will be static and the email message will be hard-coded without use of environment variables, etc.  The solution should just use standard SMTP (authentication would be nice).  
ASKER CERTIFIED SOLUTION
Avatar of thetmanvn
thetmanvn
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi
You can use "blat" as well to create a small .bat
This .bat will be started via a scheduled task, for example.

http://www.blat.net/
You have to configure blat the first time, read the FAQ, "CL - Why should I run Blat -install...?"

The .bat might be something like:

hostname > c:\body.txt
c:\blat\blat.exe body.txt -to some@one.com  -from noreply@blah.com -subject "host rebooted" -attach c:\any_file_if_needed.txt

Regards
sorry, not "to create a small bat", I mean "AND create a small bat"
Avatar of whc4

ASKER

Used your recommended method (second link).  Does exactly what I need.  Thanks!