1Log::Dispatch::Email::MUasielrSeCnodn(t3r)ibuted Perl DoLcougm:e:nDtiastpiaotnch::Email::MailSend(3)
2
3
4

NAME

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

VERSION

10       version 2.27
11

SYNOPSIS

13         use Log::Dispatch;
14
15         my $log = Log::Dispatch->new(
16             outputs => [
17                 [
18                     'Email::MailSend',
19                     min_level => 'emerg',
20                     to        => [qw( foo@example.com bar@example.org )],
21                     subject   => 'Big error!'
22                 ]
23             ],
24         );
25
26         $log->emerg("Something bad is happening");
27

DESCRIPTION

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

CHANGING HOW MAIL IS SENT

33       Since Mail::Send is a subclass of Mail::Mailer, you can change how mail
34       is sent from this module by simply "use"ing Mail::Mailer in your code
35       before mail is sent.  For example, to send mail via smtp, you could do:
36
37         use Mail::Mailer 'smtp', Server => 'foo.example.com';
38
39       For more details, see the Mail::Mailer docs.
40

AUTHOR

42       Dave Rolsky <autarch@urth.org>
43
45       This software is Copyright (c) 2010 by Dave Rolsky.
46
47       This is free software, licensed under:
48
49         The Artistic License 2.0
50
51
52
53perl v5.12.2                      2010-10-16 Log::Dispatch::Email::MailSend(3)
Impressum