Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
jmumby
- Posts: 2
- Joined: 09 Jan 2010 16:22
#1
Post
by jmumby » 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
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
-
jmumby
- Posts: 2
- Joined: 09 Jan 2010 16:22
#2
Post
by jmumby » 11 Jan 2010 22:36
The code I use is ...
Code: Select all
sendemail -t address@server.com -u Scanned document %date% %time% -s smtp.server.com -xu username -xp password -m This is an OCR text document -f address@server.com -a %~n1_%XTime%.txt > msg
I figured I could just put a > msg at the end of it and store it that way.