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->new ( outputs => [ [ 'Email::EmailSender', min_level => 'emerg', from => 'logger@example.com', to => [ qw( foo@example.com bar@example.org ) ], subject => 'Big error!', header_encode => 'MIME-Header-ISO_2022_JP', body_encode => 'iso-2022-jp', ], ], ); $log->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->new ( outputs => [ [ 'Email::EmailSender', min_level => 'emerg', from => 'logger@example.com', to => [ qw( foo@example.com bar@example.org ) ], subject => 'Big error!', header_encode => 'MIME-Header-ISO_2022_JP', body_encode => 'iso-2022-jp', use_transport_smtp => 1, host => [your smtp host], port => [your smtp port number], sasl_username => [your username], sasl_password => [your password], ], ], ); $log->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 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.