Sending an Email Message When an Event Occurs
Writing a task that sends an email message when an event occurs is done by defining an event trigger and an email action.
Event Triggers allow you to specify an event query that is used to subscribe to events produced by the Windows Event Log service. When an event occurs the action of the task will execute.
The following examples send an email message when an event occurs:
Build date: 10/16/2012