XP is just a number | |
PerlMonks |
Log4Perl to send mail via SMTPby weismat (Friar) |
on Nov 20, 2008 at 13:08 UTC ( [id://724864]=perlquestion: print w/replies, xml ) | Need Help?? |
weismat has asked for the wisdom of the Perl Monks concerning the following question:
Maybe I am missing something obvious, but how do I send SMTP mail via Log4Perl? I use this configuration log4perl.category = FATAL, Mailer log4perl.appender.Mailer = Log::Dispatch::Email::MailSend log4perl.appender.Mailer.to = x@z.com log4perl.appender.Mailer.from = y@z.com log4perl.appender.Mailer.subject = Something's broken! log4perl.appender.Mailer.layout = SimpleLayout log4perl.appender.Mailer.Server = x.x.x.x log4perl.appender.Mailer.smtp = 1 I have tested that Mail::Mailer works, but I do not get it to work with the standard appender. The constructor for Mailer needs to be in the following format: $mailer = Mail::Mailer->new('smtp', Server => $server);
Back to
Seekers of Perl Wisdom
|
|