@REM $Header: nbmail.cmd,v 1.8 2005/05/10 16:12:29 $ @REM @REM bcpyrght @REM *************************************************************************** @REM * $VRTScprght: Copyright 2014 Symantec Corporation, All Rights Reserved SY39-6648-5573-26-15-5 $ * @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 - http://blat.net/ - @REM - - @REM - Here's how to use BLAT with the NetBackup NT server. - @REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @REM @IF "%~4"=="" ( @blat %3 -s %2 -t %1 -i BackupAdministrator@unileaf.local -server smtpserver.unileaf.com.br -q @) ELSE ( @blat %3 -s %2 -t %1 -i BackupAdministrator@unileaf.local -server smtpserver.unileaf.com.br -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 @IF "%~4"=="" ( @blat %TEMP%\nbmail.tmp -s %2 -t %1 -server smtpserver.unileaf.com.br -q @) ELSE ( @blat %TEMP%\nbmail.tmp -s %2 -t %1 -server smtpserver.unileaf.com.br -q -attach %4 @) @REM - @REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -