Troubleshooting email notification can be difficult, due to the fact that no output is displayed. The best way to determine if the nbmail.cmd script and Blat are working correctly is to remove the -q from the end of the Blat command and redirect the output of the command to a text file.
For example,
- Original Blat command from the nbmail.cmd script:
@blat %3 -s %2 -t %1 -i NetBackup -q
- Modified Blat command used for troubleshooting:
@blat %3 -s %2 -t %1 -i NetBackup >C:\nbmail_test.txt
This change will output exactly what the Blat utility is sending to the mail server and should return any errors that the server returns.
Below is an example of the output:
Sending C:\WINNT\TEMP\nb_AC6.tmp to email_address@veritas.com Subject:NetBkup on test client - 150 started Login name is user.name@veritas.com