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.70
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

SUPPORT

42       Bugs may be submitted at
43       <https://github.com/houseabsolute/Log-Dispatch/issues>.
44
45       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
46

SOURCE

48       The source code repository for Log-Dispatch can be found at
49       <https://github.com/houseabsolute/Log-Dispatch>.
50

AUTHOR

52       Dave Rolsky <autarch@urth.org>
53
55       This software is Copyright (c) 2020 by Dave Rolsky.
56
57       This is free software, licensed under:
58
59         The Artistic License 2.0 (GPL Compatible)
60
61       The full text of the license can be found in the LICENSE file included
62       with this distribution.
63
64
65
66perl v5.32.1                      2021-01-27 Log::Dispatch::Email::MailSend(3)
Impressum