Conditional operation on response from email script.
Posted: 09 Jan 2010 16:26
Im using http://freshmeat.net/projects/sendemail/ in a batch file. At the end of sending an email it replys with a message of succses or failure. For example
Is it possible to capture this message into a variable for processing?
The conditional part I can probably work out, I don't know how to get the reply stream into a variable.
Thx
Code: Select all
Jan 10 00:46:54 villa sendemail[456]: Email was sent successfully!
Is it possible to capture this message into a variable for processing?
The conditional part I can probably work out, I don't know how to get the reply stream into a variable.
Thx