From 8e2a1d7927fb5da4719a2fb6f1554f8a68fbd0f7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 May 2021 14:10:56 +0200 Subject: [PATCH] Bug 28416: Delay load of Email::Sender::Transport::SMTP As it's taking 10M of RAM Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Fridolin Somers --- Koha/SMTP/Server.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Koha/SMTP/Server.pm b/Koha/SMTP/Server.pm index 7a2a40cb18..1550d1ca4e 100644 --- a/Koha/SMTP/Server.pm +++ b/Koha/SMTP/Server.pm @@ -21,8 +21,6 @@ use Koha::Database; use Koha::Exceptions::Object; use Koha::SMTP::Servers; -use Email::Sender::Transport::SMTP; - use base qw(Koha::Object); =head1 NAME @@ -66,6 +64,7 @@ sub transport { $params->{debug} = $self->debug; + require Email::Sender::Transport::SMTP; my $transport = Email::Sender::Transport::SMTP->new( $params ); return $transport; -- 2.39.5