feat(mail_smtpstreamoptions): Allow to use global default_certificates_bundle_path in mail_smtpstreamoptions

Signed-off-by: Simon L. <szaimen@e.mail.de>
pull/56875/head
Simon L. 2025-12-05 15:02:13 +07:00
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();