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).  
Who is Participating?
thetmanvnConnect With a Mentor Commented:
There a lot console program that help you. See this article for your choice:

In my opinion, you should you method 4 from sendmail utilitiy of Daniel Petri

Create a .bat file like:

SendMail /smtpserver mailsrv01 /to /from /subject Message subject /body message body /user youruser /password password

Then add it to machine startup script using Task Schedule when computer start.

Hope this help
You can use "blat" as well to create a small .bat
This .bat will be started via a scheduled task, for example.
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  -from -subject "host rebooted" -attach c:\any_file_if_needed.txt

sorry, not "to create a small bat", I mean "AND create a small bat"
whc4Author Commented:
Used your recommended method (second link).  Does exactly what I need.  Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.