From 477c020db8e27daa625fda3c1391623742b3a812 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 29 Feb 2024 10:37:00 +0100 Subject: Fix backport Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Mail/Mailer.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/private/Mail/Mailer.php') diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index 7d249338bdc..60f6c4580ca 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -350,14 +350,10 @@ class Mailer implements IMailer { break; } - switch ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) { - case 'pipe': - $binaryParam = ' -t'; - break; - default: - $binaryParam = ' -bs'; - break; - } + $binaryParam = match ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) { + 'pipe' => ' -t -i', + default => ' -bs', + }; return new SendmailTransport($binaryPath . $binaryParam, null, $this->logger); } -- cgit v1.2.3