<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Log::Dispatch::Email::EmailSender - Subclass of Log::Dispatch::Email
    that uses the Email::Sender::Simple module

SYNOPSIS
      ###
      ### simple usage
      ###
      use Log::Dispatch;
      my $log =
          Log::Dispatch-&gt;new
              ( outputs =&gt;
                    [ [ 'Email::EmailSender',
                        min_level     =&gt; 'emerg',
                        from          =&gt; 'logger@example.com',
                        to            =&gt; [ qw( foo@example.com bar@example.org ) ],
                        subject       =&gt; 'Big error!',
                        header_encode =&gt; 'MIME-Header-ISO_2022_JP',
                        body_encode   =&gt; 'iso-2022-jp', ],
                        decode        =&gt; 'utf8',
                    ],
              );
      $log-&gt;emerg("Something bad is happening");

      ###
      ### Sending a message with Email::Sender::Transport::SMTP
      ### Does not support ssl option.
      ###
      use Log::Dispatch;
      my $log =
          Log::Dispatch-&gt;new
              ( outputs =&gt;
                    [ [ 'Email::EmailSender',
                        min_level          =&gt; 'emerg',
                        from               =&gt; 'logger@example.com',
                        to                 =&gt; [ qw( foo@example.com bar@example.org ) ],
                        subject            =&gt; 'Big error!',
                        header_encode      =&gt; 'MIME-Header-ISO_2022_JP',
                        body_encode        =&gt; 'iso-2022-jp',
                        decode             =&gt; 'utf8',
                        use_transport_smtp =&gt; 1,
                        host               =&gt; [your smtp host],
                        port               =&gt; [your smtp port number],
                        sasl_username      =&gt; [your username],
                        sasl_password      =&gt; [your password], ],
                    ],
              );
      $log-&gt;emerg("Something bad is happening");

DESCRIPTION
    This is a subclass of Log::Dispatch::Email that implements the
    send_email method using the Email::Sender::Simple module. The garble can
    be prevented by specifying the character encoding.

DESCRIPTION(ja)
    Log::Dispatch::Email ã®ã‚µãƒ–ã‚¯ãƒ©ã‚¹ã§ã™ã€‚ ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚’æŒ‡å®šã™ã‚‹ã“ã¨ã§æ–‡å­—åŒ–ã‘ã‚’é˜²ãã“ã¨ãŒã§ãã¾ã™ã€‚
    ã¾ãŸã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§æ—¥æœ¬èªžã®ä»¶åã¨æœ¬æ–‡ã‚’ ISO_2022_JP ã«ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã™ã‚‹ãŸã‚ã€ä»–ã®ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã®ã‚ˆã†ãªæ–‡å­—åŒ–ã‘ãŒèµ·ã“ã‚Šã¾ã›ã‚“ã€‚

DEPENDENCIES
    Log::Dispatch::Email
    Encode
    Email::MIME
    Email::Sender::Simple
    Email::Sender::Transport::SMTP

BUGS AND LIMITATIONS
    Does not support SSL on Email::Sender::Transport::SMTP.

    I don't understand why it doesn't work.

FUTURE PLANS
    Support other Email::Sender::Transport::* classes.
    Add more tests.

AUTHOR
    keroyon &lt;keroyon@cpan.org&gt;

SEE ALSO
    Log::Dispatch
    Log::Dispatch::Email::MailSender

LICENSE
    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

</pre></body></html>