diff options
author | Thomas Lutz <phoen1x@livingfire.de> | 2016-08-07 17:30:17 +0200 |
---|---|---|
committer | Thomas Lutz <phoen1x@livingfire.de> | 2016-08-07 17:30:17 +0200 |
commit | 74b2a1ffb43c704be64c7ac3215bdb2f29b12caf (patch) | |
tree | 3b626f332c372e1b52d7a2598a0b45f69955cf17 | |
parent | 98efcf21e355ed6ac3827058b99df86ca67c75bb (diff) |
fix selfsigned ssl certificates swift 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; } |