The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paranoid::Log::Email - Log Facility Email

VERSION

$Id: lib/Paranoid/Log/Email.pm, 2.00 2016/05/13 19:49:51 acorliss Exp $

SYNOPSIS

  use Paranoid::Log;
  
  startLogger('crit-msg', 'Email', PL_CRIT, PL_GE, 
    { mailhost  => $mailhost, recipient => $recipient,
      sender    => $sender,   subject   => $subject });

DESCRIPTION

This module implements an e-mail transport for messages sent to the logger. It supports one or more recipients as well as overriding the sender address and subject line. It also supports connecting to a remote mail server.

mailhost and recipient are the only mandatory options.

OPTIONS

The options recognized for use in the options hash are as follows:

    Option      Value       Description
    -----------------------------------------------------
    mailhost    string      Hostname of mail server
    recipient   string      E-mail address of recipient
    sender      string      E-mail address of sender
    subject     string      Subject line to use

SUBROUTINES/METHODS

NOTE: Given that this module is not intended to be used directly nothing is exported.

init

addLogger

delLogger

logMsg

DEPENDENCIES

o

Net::SMTP

o

Net::Domain

o

Paranoid

o

Paranoid::Debug

SEE ALSO

o

Paranoid::Log

BUGS AND LIMITATIONS

No format checking is done for any of the mail options. The mandatory options are checked only for existence upon addition of a new logger.

AUTHOR

Arthur Corliss (corliss@digitalmages.com)

LICENSE AND COPYRIGHT

This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.

(c) 2005 - 2015, Arthur Corliss (corliss@digitalmages.com)