From: Juan B <[EMAIL PROTECTED]>
> use Mail::Mailer;
> 
> <snipped>
>
>    my $mailer = Mail::Mailer->new("smtp",
> "10.83.27.71");
>    $mailer->open( 'From' => 'Syslog
> <[EMAIL PROTECTED]>',
>                   'To' => 'gabriela pinado
> <[EMAIL PROTECTED]>',
>                   'Subject' => 'PiX Detected Attack '
> );

The open() expects a single parameter, a reference to a hash. Not a 
list of parameters, the odd ones being names and the even ones the 
values.

Use

  $mailer->open({
   'From' => 'Syslog <[EMAIL PROTECTED]>',
   'To' => 'gabriela pinado <[EMAIL PROTECTED]>',
   'Subject' => 'PiX Detected Attack'
 });

HTH, Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to