summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail/Mailer.php
diff options
context:
space:
mode:
authorCarsten Wiedmann <carsten_sttgt@gmx.de>2018-11-12 23:26:35 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-11-29 16:02:35 +0100
commit446d96f3eb405302b75a3f0de094019dc25e5b44 (patch)
treed9316d6efc759b9cb4e0da4d83307c732cff3e19 /lib/private/Mail/Mailer.php
parent3da7364c364445997727133d04b4a053b90321f8 (diff)
downloadnextcloud-server-446d96f3eb405302b75a3f0de094019dc25e5b44.tar.gz
nextcloud-server-446d96f3eb405302b75a3f0de094019dc25e5b44.zip
Apply patch from @cwiedmann but drop -oi option for pipe
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Mail/Mailer.php')
-rw-r--r--lib/private/Mail/Mailer.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index df23b669365..7a8b4ad2599 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -282,6 +282,15 @@ class Mailer implements IMailer {
break;
}
- return new \Swift_SendmailTransport($binaryPath . ' -bs');
+ switch ($this->config->getSystemValue('mail_sendmailmode', 'smtp')) {
+ case 'pipe':
+ $binaryParam = ' -t';
+ break;
+ default:
+ $binaryParam = ' -bs';
+ break;
+ }
+
+ return new \Swift_SendmailTransport($binaryPath . $binaryParam);
}
}