summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorfox <[email protected]>2019-04-22 09:01:02 +0000
committerGogs <[email protected]>2019-04-22 09:01:02 +0000
commiteebc18f00ef5fbaebd4f9a6e43685f87ba8b537f (patch)
tree106f26361aa1a48f496615f88fa7342f81f756a8 /init.php
parent8906bf9fead9c1ef52e2e502b78480d8fd92e112 (diff)
parent09de83dd83281c141e21bc45204f536655bd301b (diff)
Merge branch 'dev/add_custom_tls_cert' of Neraud/ttrss-mailer-smtp into master
Diffstat (limited to 'init.php')
-rw-r--r--init.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.php b/init.php
index e00a5a5..a0823f6 100644
--- a/init.php
+++ b/init.php
@@ -50,7 +50,13 @@ class mailer_smtp extends Plugin {
'allow_self_signed' => true
)
);
- }
+ } elseif (defined('SMTP_CA_FILE') && SMTP_CA_FILE) {
+ $phpmailer->SMTPOptions = array(
+ 'ssl' => array(
+ 'cafile' => SMTP_CA_FILE
+ )
+ );
+ }
$from_name = $params["from_name"] ? $params["from_name"] : SMTP_FROM_NAME;
$from_address = $params["from_address"] ? $params["from_address"] : SMTP_FROM_ADDRESS;