mirror of
https://github.com/nextcloud/server.git
synced 2026-04-03 08:05:43 -04:00
feat(mail_smtpstreamoptions): Allow to use global default_certificates_bundle_path in mail_smtpstreamoptions
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
594d22021a
commit
4e22e9576d
1 changed files with 2 additions and 0 deletions
|
|
@ -293,6 +293,8 @@ class Mailer implements IMailer {
|
|||
|
||||
$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', []);
|
||||
if (is_array($streamingOptions) && !empty($streamingOptions)) {
|
||||
$rootCertPath = $streamingOptions['ssl']['cafile'] ?? $this->config->getValue('default_certificates_bundle_path', null) ?? '';
|
||||
$streamingOptions['ssl']['cafile'] = $rootCertPath;
|
||||
/** @psalm-suppress InternalMethod */
|
||||
$currentStreamingOptions = $stream->getStreamOptions();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue