Question : Send email using a Scheduled Task thats attached to an Event ID using Windows Server 2008 R2 Standard?

I'm creating a Basic Task using the Wizard, and then attaching that task to the Scheduled Task.  I want to receive an email when the event is logged.  I'm not getting the email.  Under the the History Tab I see it failed with this msg.  IIS 7.5 is running, I don't see the smtp service running if that matters.

Would somebody clue me in on what I need to do to make this happen?  

+ System

  - Provider

   [ Name]  Microsoft-Windows-TaskScheduler
   [ Guid]  {DE7B24EA-73C8-4A09-985D-5BDADCFA9017}
 
   EventID 202
 
   Version 0
 
   Level 2
 
   Task 202
 
   Opcode 102
 
   Keywords 0x8000000000000000
 
  - TimeCreated

   [ SystemTime]  2010-08-20T19:45:05.048062300Z
 
   EventRecordID 14231
 
  - Correlation

   [ ActivityID]  {3EF22033-2BA7-4A10-A450-382187D033B7}
 
  - Execution

   [ ProcessID]  6016
   [ ThreadID]  6384
 
   Channel Microsoft-Windows-TaskScheduler/Operational
 
   Computer name.mydomain.org
 
  - Security

   [ UserID]  S-1-5-21-32063543-1347908593-1251826310-500

- EventData

  TaskName \Event Viewer Tasks\System_Microsoft-Windows-WAS_5186
  TaskInstanceId {3EF22033-2BA7-4A10-A450-382187D033B7}
  ActionName Sys Evt Log Info event id5186 ComputerName
  ResultCode 2147746323

Answer : Send email using a Scheduled Task thats attached to an Event ID using Windows Server 2008 R2 Standard?

Hello !

Judging by the following link, you may never correct your problem : http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_24474964.html

No one ever found a solution for this problem, which is really, really similar to yours.

I would go with a workaround. Set up your task to launch a batch file instead of send an email and get your hand on the "sendemail.exe" command line email sender (see here : http://caspian.dotconf.net/menu/Software/SendEmail/). You can then pass parameters to your batch file to personalize your message. I works great, I've been using this for years. This should solve your problem.

Syldra
Random Solutions  
 
programming4us programming4us