1Agent::Driver::Mail(3)User Contributed Perl DocumentationAgent::Driver::Mail(3)
2
3
4

NAME

6       Log::Agent::Driver::Mail - email driver for Log::Agent
7

SYNOPSIS

9        use Log::Agent;
10        require Log::Agent::Driver::Mail;
11
12        my $driver = Log::Agent::Driver::Mail->make(
13            -to      => 'oncall@example.org',
14            -cc      => [ qw( noc@example.org admin@example,net ) ],
15            -subject => "ALERT! ALERT!",
16            -mailer  => [ 'smtp', Server => 'mail.example.net' ]
17        );
18        logconfig(-driver => $driver);
19

DESCRIPTION

21       This driver maps the logxxx() calls to email messages.  Each call
22       generates a separate email message.  The Mail::Mailer module is
23       required.
24

CONSTRUCTOR

26   make OPTIONS
27       The OPTIONS argument is a hash with the following keys:
28
29       -prefix An optional prefix for the message body.
30
31       -to     The destination addresses, may be a scalar containing a valid
32               email address or a reference to an array of addresses.
33
34       -reply_to
35               The reply-to addresses, may be a scalar containing a valid
36               email address or a reference to an array of addresses.
37
38       -from   The source address, must be a scalar containing a valid email
39               address.
40
41       -subject
42               The subject line of the email message.
43
44       -cc     The carbon copy addresses, may be a scalar containing a valid
45               email address or a reference to an array of addresses.
46
47       -bcc    The blind carbon copy addresses, may be a scalar containing a
48               valid email address or a reference to an array of addresses.
49
50       -priority
51               The priority level for the email message.  This is NOT related
52               to the logging priority.
53
54       -mailer A reference to an array containing the optional arguments to
55               Mail::Mailer->new().  Generally, this can be omitted.
56

NOTES

58       Thanks to Shirley Wang for the idea for this module.
59

AUTHOR

61       Mark Rogaski <mrogaski@pobox.com>
62

LICENSE

64       Copyright (C) 2002 Mark Rogaski; all rights reserved.
65
66       See Log::Agent(3) or the README file included with the distribution for
67       license information.
68

SEE ALSO

70       Mail::Mailer, Log::Agent::Driver(3), Log::Agent(3).
71
72
73
74perl v5.28.0                      2017-10-27            Agent::Driver::Mail(3)
Impressum