Hi ruffy,
I tried your sugesstion and I'm able to send emails using blat, however, netbackup still does not send any. Here is my nbmail.cmd and backup_end_notify.cmd. Please help.
@REM $Header: nbmail.cmd,v 1.8 2005/05/10 16:12:29 $
@REM
@REM bcpyrght
@REM ***************************************************************************
@REM * $VRTScprght: Copyright 1993 - 2006 Symantec Corporation, All Rights Reserved $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - -
@REM - HOW TO SEND MAIL FROM THE NT NETBACKUP SERVER -
@REM - -
@REM - NetBackup checks if the mail script (NetBackup\Bin\nbmail.cmd) exists. -
@REM - If the script exists, NetBackup runs it passing four parameters on the -
@REM - command line: -
@REM - -
@REM - %1 is the recipient's address -
@REM - %2 is the subject line -
@REM - %3 is the message file name -
@REM - %4 is the attached file name -
@REM - -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - -
@REM - HOW TO SEND DR MAIL FROM THE NT NETBACKUP SERVER -
@REM - -
@REM - NetBackup DR protection checks if the mail script -
@REM - (NetBackup\Bin\mail_dr_info.cmd) exists. If the script exists -
@REM - NetBackup DR protection runs it passing four parameters on the -
@REM - command line: -
@REM - -
@REM - %1 is the recipient's address -
@REM - %2 is the subject line -
@REM - %3 is the message file name -
@REM - %4 is the attached file name -
@REM - -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - -
@REM - A public domain SMTP mail client for NT called BLAT is available at: -
@REM - -
@REM - -
@REM - Here's how to use BLAT with the NetBackup NT server. -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM
@IF "%~4"=="" (
C:\blat262\full\blat %3 -s %2 -t %1 -i NetBackup -server 192.168.54.12 -q
) ELSE (
C:\blat262\full\blat %3 -s %2 -t %1 -i NetBackup -server 192.168.54.12 -q -attach %4
)
@REM
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - The -i option designates the originator's address, you may change this -
@REM - or omit it altogether (the default is the sender's address specified -
@REM - when BLAT was installed). -
@REM - -
@REM - The -server option is given as an example, you need to determine the -
@REM - correct name of your SMTP server. This option may also be omitted -
@REM - (the default is the server specified when installing BLAT). -
@REM - -
@REM - You may use any mail program you want, as long as it has a command line -
@REM - interface that can be used to send mail. Just substitute a call to -
@REM - your favorite mail program for the call to BLAT above. -
@REM - -
@REM - After modifying this script to suit your situation (make sure you are -
@REM - calling a valid mail program and the call is not commented out), -
@REM - activate it by moving it to the NetBackup\Bin directory. -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - Some email servers do not handle the formating of the messages created -
@REM - by NetBackup. Here is an example of how to get Exchange or IIS to -
@REM - send the mail messages. -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - @copy /y %3 %TEMP%\nbmail.tmp > NUL
@REM - @echo . >> %TEMP%\nbmail.tmp
@REM - @IF "%~4"=="" (
@REM - blat %TEMP%\nbmail.tmp -s %2 -t %1 -q
@REM - ) ELSE (
@REM - blat %TEMP%\nbmail.tmp -s %2 -t %1 -q -attach %4
@REM - )
@REM -
@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -