Nigel Horne > Log-Dispatch-Email-Sendmail-0.02 > Log::Dispatch::Email::Sendmail

Download:
Log-Dispatch-Email-Sendmail-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Log::Dispatch::Email::Sendmail - Subclass of Log::Dispatch::Email that sends e-mail using Sendmail

VERSION ^

Version 0.02

SYNOPSIS ^

Log::Dispatch::Email::MailSendmail is no longer suitable for all situations because it doesn't use Sendmail to send mail (despite the name of the module) instead it uses SMTP and doesn't support AUTH.

This module sends mail using Sendmail. It has the overhead of a fork/exec so it should only be used where really needed.

    use Log::Dispatch;

    my $log = Log::Dispatch->new(
      outputs => [
          [
              'Email::Sendmail',
              min_level => 'emerg',
              to        => [qw( foo@example.com bar@example.org )],
              subject   => 'Big error!'
          ]
      ],
    );

    $log->emerg("Something bad is happening");

SUBROUTINES/METHODS ^

send_email

Send a message

AUTHOR ^

Nigel Horne, <njh at bandsman.co.uk>

BUGS ^

No known bugs.

SEE ALSO ^

Log::Dispatch::Email::MailSendmail

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Log::Dispatch::Email::Sendmail

You can also look for information at:

ACKNOWLEDGEMENTS ^

Kudos to Dave Rolksy for the entire Log::Dispatch framework.

LICENSE AND COPYRIGHT ^

Copyright 2013 Nigel Horne.

This program is released under the following licence: GPL

syntax highlighting: