I have a scheduled task set up in Windows task scheduler. It runs on a particular time of the day. Once the job is completed (action 1 - the job itself) there is another Action (action 2) that is a Bmail program (command line tool to send emails without the need for a SMTP client installed) that is executed. Right now, the Bmail program sends an email successfully irrespective of the 'action 1' failing or running. I want the email to be detail specific, tell me if the first job action 1 failed or ran successfully Or may be email to be sent ONLY when the first job runs successfully. Thanks for the help.