summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Mail')
-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);
}
}