diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-07 13:41:44 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-07 13:41:44 -0400 |
commit | f0192a7b2e69a96ee2e97d02397c4d4f75fa94ed (patch) | |
tree | 4c3f6e99970e7daef53ad6027d943573ffcfd142 /app/Core/Mail | |
parent | 4725544159fdd7f15b93b1539fed2486a6661790 (diff) | |
parent | 74b2a1ffb43c704be64c7ac3215bdb2f29b12caf (diff) |
Merge pull-request #2560
Diffstat (limited to 'app/Core/Mail')
-rw-r--r-- | app/Core/Mail/Transport/Smtp.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Core/Mail/Transport/Smtp.php b/app/Core/Mail/Transport/Smtp.php index 66f0a3aa..ec7eb541 100644 --- a/app/Core/Mail/Transport/Smtp.php +++ b/app/Core/Mail/Transport/Smtp.php @@ -24,6 +24,9 @@ class Smtp extends Mail $transport->setUsername(MAIL_SMTP_USERNAME); $transport->setPassword(MAIL_SMTP_PASSWORD); $transport->setEncryption(MAIL_SMTP_ENCRYPTION); + if (HTTP_VERIFY_SSL_CERTIFICATE === false) { + $transport->setStreamOptions(array('ssl' => array('allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false,))); + } return $transport; } |