Skip to content

Commit 4e22e95

Browse files
committed
feat(mail_smtpstreamoptions): Allow to use global default_certificates_bundle_path in mail_smtpstreamoptions
Signed-off-by: Simon L. <[email protected]>
1 parent 594d220 commit 4e22e95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Mail/Mailer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ protected function getSmtpInstance(): EsmtpTransport {
293293

294294
$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', []);
295295
if (is_array($streamingOptions) && !empty($streamingOptions)) {
296+
$rootCertPath = $streamingOptions['ssl']['cafile'] ?? $this->config->getValue('default_certificates_bundle_path', null) ?? '';
297+
$streamingOptions['ssl']['cafile'] = $rootCertPath;
296298
/** @psalm-suppress InternalMethod */
297299
$currentStreamingOptions = $stream->getStreamOptions();
298300

0 commit comments

Comments
 (0)