1Log::Dispatch::Email::MUasielrSeCnodnetrr(i3b)uted PerlLDoogc:u:mDeinstpaatticohn::Email::MailSender(3)
2
3
4

NAME

6       Log::Dispatch::Email::MailSender - Subclass of Log::Dispatch::Email
7       that uses the Mail::Sender module
8

VERSION

10       version 2.68
11

SYNOPSIS

13         use Log::Dispatch;
14
15         my $log = Log::Dispatch->new(
16             outputs => [
17                 [
18                     'Email::MailSender',
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::Sender module.
31

CONSTRUCTOR

33       The constructor takes the following parameters in addition to the
34       parameters documented in Log::Dispatch::Output and
35       Log::Dispatch::Email:
36
37       ·   smtp ($)
38
39           The smtp server to connect to. This defaults to "localhost".
40
41       ·   port ($)
42
43           The port to use when connecting. This defaults to 25.
44
45       ·   auth ($)
46
47           Optional. The SMTP authentication protocol to use to login to the
48           server. At the time of writing Mail::Sender only supports LOGIN,
49           PLAIN, CRAM-MD5 and NTLM.
50
51           Some protocols have module dependencies. CRAM-MD5 depends on
52           Digest::HMAC_MD5 and NTLM on Authen::NTLM.
53
54       ·   authid ($)
55
56           Optional. The username used to login to the server.
57
58       ·   authpwd ($)
59
60           Optional. The password used to login to the server.
61
62       ·   tls_required ($)
63
64           Optional. If you set this option to a true value, Mail::Sender will
65           fail whenever it's unable to use TLS.
66
67       ·   fake_from ($)
68
69           The From address that will be shown in headers. If not specified we
70           use the value of from.
71
72       ·   replyto ($)
73
74           The reply-to address.
75

SUPPORT

77       Bugs may be submitted at
78       <https://github.com/houseabsolute/Log-Dispatch/issues>.
79
80       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
81

SOURCE

83       The source code repository for Log-Dispatch can be found at
84       <https://github.com/houseabsolute/Log-Dispatch>.
85

AUTHOR

87       Dave Rolsky <autarch@urth.org>
88
90       This software is Copyright (c) 2018 by Dave Rolsky.
91
92       This is free software, licensed under:
93
94         The Artistic License 2.0 (GPL Compatible)
95
96       The full text of the license can be found in the LICENSE file included
97       with this distribution.
98
99
100
101perl v5.28.1                      2018-08-22Log::Dispatch::Email::MailSender(3)
Impressum