Tiny fixes
This commit is contained in:
parent
05c7f4b9c6
commit
faf03232f4
2 changed files with 2 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ use open IO => ':utf8';
|
|||
use open ':std';
|
||||
|
||||
use Data::Dumper;
|
||||
use Email::MIME;
|
||||
use Exporter 'import';
|
||||
use POSIX qw(strftime);
|
||||
use Term::ANSIColor qw(:constants);
|
||||
|
|
@ -71,6 +70,7 @@ sub log
|
|||
|
||||
if ($mail_error && $level <= ERROR)
|
||||
{
|
||||
require Email::MIME;
|
||||
require Email::Sender::Simple;
|
||||
Email::Sender::Simple->import(qw(sendmail));
|
||||
my $mail = Email::MIME->create(
|
||||
|
|
|
|||
Reference in a new issue