Fix backport

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2024-02-29 10:37:00 +01:00 committed by GitHub
parent e61f0b82c7
commit 477c020db8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}