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
Solved

Send email on Windows XP startup

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy 33 116
Windows 10 disk usage 100%. 28 181
Windows Restrict installation 11 38
Changing the Users Path and User Name in Windows 10 Home 4 33
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
PHP contact form that lets the user to contact the company through email contact form. A button is fixed at the bottom of site, on clicking a new window will open where a user can send the email.
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

828 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