Im using sendemail in a batch file. At the end of sending an email it replys with a message of succses or failure. For example
Jan 10 00:46:54 villa sendema
normally, you just use the for loop to capture the output. see here notes 4. (and search internet for more)