Solved

Send email on Windows XP startup

Posted on 2010-09-14
4
1,906 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

756 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