diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-29 11:36:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:36:12 +0100 |
commit | 7b9fed1cb5a63fc9315bdad30a3b9ade6559256a (patch) | |
tree | 98f90777a96e29915a793a438dbe4bfb9f1021c1 /lib/private | |
parent | 3068ad725b340f907adf84c17c2d2521e47b2627 (diff) | |
parent | 477c020db8e27daa625fda3c1391623742b3a812 (diff) | |
download | nextcloud-server-7b9fed1cb5a63fc9315bdad30a3b9ade6559256a.tar.gz nextcloud-server-7b9fed1cb5a63fc9315bdad30a3b9ade6559256a.zip |
Merge pull request #43789 from nextcloud/backport/39607/stable27
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Mail/Mailer.php | 12 |
1 files changed, 4 insertions, 8 deletions
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); } |