From 8da2d51727de2bf656bcda0ec19cb6b204ee1a55 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 Oct 2020 11:19:16 +0200 Subject: [PATCH] Bug 22343: (follow-up) Remove traces of Mail::Sendmail - update POD --- Koha/SMTP/Server.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/SMTP/Server.pm b/Koha/SMTP/Server.pm index dd6cc9c934..919f7898b2 100644 --- a/Koha/SMTP/Server.pm +++ b/Koha/SMTP/Server.pm @@ -36,7 +36,8 @@ Koha::SMTP::Server - Koha SMTP Server Object class =head3 transport my $transport = $smtp_server->transport; - sendmail( $message, { transport => $transport } ); + $email->transport($transport); + $email->send_or_die; Returns an I object that can be used directly with Email::Sender. -- 2.20.1