Log::Dispatch::Email::MailSend - Subclass of Log::Dispatch::Email that uses the Mail::Send module


NAME

Log::Dispatch::Email::MailSend - Subclass of Log::Dispatch::Email that uses the Mail::Send module


SYNOPSIS

  use Log::Dispatch::Email::MailSend;
  my $email =
      Log::Dispatch::Email::MailSend->new
          ( name => 'email',
            min_level => 'emerg',
            to => [ qw( foo@bar.com bar@baz.org ) ],
            subject => 'Oh no!!!!!!!!!!!', );
  $email->log( message => 'Something bad is happening', level => 'emerg' );


DESCRIPTION

This is a subclass of Log::Dispatch::Email that implements the send_email method using the Mail::Send module.


METHODS


CHANGING HOW MAIL IS SENT

Since Mail::Send is a subclass of Mail::Mailer, you can change how mail is sent from this module by simply useing Mail::Mailer in your code before mail is sent. For example, to send mail via smtp, you could do:

  use Mail::Mailer 'smtp', Server => 'foo.example.com';

For more details, see the Mail::Mailer docs.


AUTHOR

Dave Rolsky, <autarch@urth.org>


SEE ALSO

Log::Dispatch, Log::Dispatch::ApacheLog, Log::Dispatch::Email, Log::Dispatch::Email::MailSendmail, Log::Dispatch::Email::MIMELite, Log::Dispatch::File, Log::Dispatch::Handle, Log::Dispatch::Output, Log::Dispatch::Screen, Log::Dispatch::Syslog

 Log::Dispatch::Email::MailSend - Subclass of Log::Dispatch::Email that uses the Mail::Send module