mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Fix backport
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
e61f0b82c7
commit
477c020db8
1 changed files with 4 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue