Solved

Send email on Windows XP startup

Posted on 2010-09-14
4
1,914 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Suggested Courses

617 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