Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Email Notification from DOS

RE: Email Notification from DOS

From: Branimir Petrovic <BranimirP_at_cpas.com>
Date: Wed, 8 Sep 2004 11:31:49 -0400
Message-ID: <33678E78A2DD4D418396703A750048D401024F84@RIKER>

> 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_at_myplace.com
set TO=me_at_myplace.com
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_at_freelists.org&subject=unsubscribe 
To search the archives - http://www.freelists.org/archives/oracle-l/
Received on Wed Sep 08 2004 - 10:30:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US