RE: Email Notification from DOS

> I'm looking for code example to how send an email notification using
> Windows DOS scripting.


REM -- Get blat.exe from: http://www.blat.net/
REM -- Place it somewhere on PATH


set EMAIL_NOTIFY=Y
set FROM=siteadmins@xxxxxxxxxxx
set TO=me@xxxxxxxxxxx
set SMTP_SVR=mail.myplace.com

set BLAT_UTIL=blat.exe
set MAIL_BODY=%TEMP_DIR%\%SID%MailBody.log
set SUBJECT=Whatever you like...


if %EMAIL_NOTIFY%==Y (
 "%BLAT_UTIL%" "%MAIL_BODY%" -to %TO% -subject "%SUBJECT%" -server
%SMTP_SVR% -f "%FROM%"
)

REM -- Branimir
REM -- P.S. Doing the above in "real" scripting language is much-much better
option...

--
To unsubscribe - mailto:oracle-l-request@xxxxxxxxxxxxx&subject=unsubscribe 
To search the archives - http://www.freelists.org/archives/oracle-l/

Other related posts: