GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LOG::AGENT::DRIVER::MAIL (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



 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);



DESCRIPTION

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

CONSTRUCTOR

make OPTIONS

The OPTIONS argument is a hash with the following keys:
<B>-prefixB> An optional prefix for the message body.
<B>-toB> The destination addresses, may be a scalar containing a valid email address or a reference to an array of addresses.
<B>-reply_toB> The reply-to addresses, may be a scalar containing a valid email address or a reference to an array of addresses.
<B>-fromB> The source address, must be a scalar containing a valid email address.
<B>-subjectB> The subject line of the email message.
<B>-ccB> The carbon copy addresses, may be a scalar containing a valid email address or a reference to an array of addresses.
<B>-bccB> The blind carbon copy addresses, may be a scalar containing a valid email address or a reference to an array of addresses.
<B>-priorityB> The priority level for the email message. This is NOT related to the logging priority.
<B>-mailerB> A reference to an array containing the optional arguments to Mail::Mailer->new(). Generally, this can be omitted.

NOTES

Thanks to Shirley Wang for the idea for this module.

AUTHOR

Mark Rogaski <mrogaski@pobox.com>

LICENSE

Copyright (C) 2002 Mark Rogaski; all rights reserved.

See Log::Agent(3) or the README file included with the distribution for license information.

SEE ALSO

Mail::Mailer, Log::Agent::Driver(3), Log::Agent(3).
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 AGENT::DRIVER::MAIL (3) 2015-11-30

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.