diff options
author | Branko Kokanovic <branko@kokanovic.org> | 2018-11-30 21:06:44 +0100 |
---|---|---|
committer | Branko Kokanovic <branko@kokanovic.org> | 2018-11-30 22:36:03 +0100 |
commit | 72d97b44a752dc850f35c5ba830ae49bf3471815 (patch) | |
tree | b5ec24fa2c5c517b99024f1b98bc3eedf3ca66f7 /lib/private/Mail | |
parent | cae600d205572d38f6215e5e250f9bf5d89e64ff (diff) | |
download | nextcloud-server-72d97b44a752dc850f35c5ba830ae49bf3471815.tar.gz nextcloud-server-72d97b44a752dc850f35c5ba830ae49bf3471815.zip |
Expose Swift Mailer streaming options in config, fixes #12702
Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
Diffstat (limited to 'lib/private/Mail')
-rw-r--r-- | lib/private/Mail/Mailer.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index 7a8b4ad2599..2dad72b5b12 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -259,6 +259,10 @@ class Mailer implements IMailer { if (!empty($smtpSecurity)) { $transport->setEncryption($smtpSecurity); } + $streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', array()); + if (is_array($streamingOptions) && count($streamingOptions) > 0) { + $transport->setStreamOptions($streamingOptions); + } return $transport; } |