RE: Email Notification from DOS

Boy, is this DOS stuff ugly or what?. This looks much better:

$msg = MIME::Lite->new(
                 From     =>'me@xxxxxxxxxx',
                 To       =>'you@xxxxxxxxxxxx',
                 Cc       =>'some@xxxxxxxxx, some@xxxxxxxx',
                 Subject  =>'Helloooooo, List!',
                 Type     =>'image/gif',
                 Encoding =>'base64',
                 Path     =>'hello.gif'
                 );
$msg->send;
That's it. 
It works on Winduhs. It also might work on few other places.

--
Mladen Gogala
A & E TV Network
Ext. 1216


> -----Original Message-----
> From: Branimir Petrovic [mailto:BranimirP@xxxxxxxx] 
> Sent: Wednesday, September 08, 2004 11:32 AM
> To: oracle-l@xxxxxxxxxxxxx
> Subject: 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/
> 
--
To unsubscribe - mailto:oracle-l-request@xxxxxxxxxxxxx&subject=unsubscribe 
To search the archives - http://www.freelists.org/archives/oracle-l/

Other related posts: