Hi,
first time I've used blat and it appears to work fine however its sending two emails for every email I intend to send. Script excerpt is below:
::If we have a problem we email from here
CALL :checkForFailures
:checkForFailures
IF EXIST %ERROR_FILE% CALL :email & EXIT /B 1
::pause
GOTO :eof
:email
IF %TOLOG%==Y (
BLAT -f [email protected] -to [email protected] -server myserver -subject "subject text" -body "Body text" -attacht
::%PROBLEM_LIST% >> %LOGFILE%
)
GOTO :eof
I've tried running this with and without output to the logfile. runs fine from the cmd prompt but just issues within this script.
Thanks for the help