Solved

Send email on Windows XP startup

Posted on 2010-09-14
4
1,890 Views
Last Modified: 2012-05-10
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).  
0
Comment
Question by:whc4
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
thetmanvn earned 500 total points
ID: 33679258
There a lot console program that help you. See this article for your choice:

http://www.petri.co.il/send_mail_from_script.htm

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

http://www.petri.co.il/sendmail.htm

Create a .bat file like:

SendMail /smtpserver mailsrv01 /to admin@yourdomain.com /from alert@yourdomain.com /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
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 33680456
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
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 33680474
sorry, not "to create a small bat", I mean "AND create a small bat"
0
 

Author Closing Comment

by:whc4
ID: 33685717
Used your recommended method (second link).  Does exactly what I need.  Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now