Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Send email on Windows XP startup

Posted on 2010-09-14
4
Medium Priority
?
1,964 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

916 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