Agent::Driver::Mail(3pm) | User Contributed Perl Documentation | Agent::Driver::Mail(3pm) |
Log::Agent::Driver::Mail - email driver for Log::Agent
use Log::Agent; require Log::Agent::Driver::Mail; my $driver = Log::Agent::Driver::Mail->make( -to => 'oncall@example.org', -cc => [ qw( noc@example.org admin@example,net ) ], -subject => "ALERT! ALERT!", -mailer => [ 'smtp', Server => 'mail.example.net' ] ); logconfig(-driver => $driver);
This driver maps the logxxx() calls to email messages. Each call generates a separate email message. The Mail::Mailer module is required.
The OPTIONS argument is a hash with the following keys:
Thanks to Shirley Wang for the idea for this module.
Mark Rogaski <mrogaski@pobox.com>
Copyright (C) 2002 Mark Rogaski; all rights reserved.
See Log::Agent(3) or the README file included with the distribution for license information.
Mail::Mailer, Log::Agent::Driver(3), Log::Agent(3).
2022-10-15 | perl v5.34.0 |