10-26-2010 05:02 PM
Hi,
I tested blat functionality on Windows 2008 R2 with the following:
1) blat c:\test.txt –s VCB_backup –to xxx@com (able to send email successfully)
2) execute the nbmail.cmd but got the following errors:
Blat found fault with: -s
-subject <subj> : subject line, surround with quotes to include spaces(also -s)
My syntax in the cmd file are shown below:
@IF "%~4"=="" (
blat %3 -s %2 -t %1 -i NetBackup -server <PSD mail> -q
) ELSE (
blat %3 -s %2 -t %1 -i NetBackup -server <PSD mail> -q -attach %4
)
Are there anything that needs to be modified for nbmail.cmd to work in Windows 2008?
Thanks.
10-26-2010 06:53 PM
Can you try below?
@IF "%~4"=="" (
blat %3 -s "%2" -t %1 -i NetBackup -server <PSD mail> -q
) ELSE (
blat %3 -s "%2" -t %1 -i NetBackup -server <PSD mail> -q -attach %4
)