in reply to Re^2: Log4Perl to send mail via SMTP
in thread Log4Perl to send mail via SMTP

#!/usr/bin/perl ... this is your code, to it you add the following use Mail::Mailer 'smtp', Server => 'foo.example.com';

Replies are listed 'Best First'.
Re^4: Log4Perl to send mail via SMTP
by weismat (Friar) on Nov 21, 2008 at 04:20 UTC
    I tried this and received:
    Cannot locate 'Server' at log4Perl.pl line 1
    Warning: something's wrong at /opt/ActivePerl-5.8/site/lib/Mail/Mailer.pm line 278.
    Broken Pipe