summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-11-02 10:43:01 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-11-02 10:43:01 +0000
commit6dc8161c3b9ae6039cb3ca9d98ad42b9bdb7d6ee (patch)
tree8cf9415d497be1ceb77fbf2892e82aa8d433ccb4 /Postman/Postman-Mail
parent1055d93d157713839e3995a8080041ef955a5ce0 (diff)
downloadPost-SMTP-6dc8161c3b9ae6039cb3ca9d98ad42b9bdb7d6ee.zip
Fix self sign certificate
Diffstat (limited to 'Postman/Postman-Mail')
-rw-r--r--Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php b/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php
index db8016d..e2dade8 100644
--- a/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php
+++ b/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php
@@ -203,6 +203,11 @@ class Postman_Zend_Mail_Protocol_Smtp extends Postman_Zend_Mail_Protocol_Abstrac
if ($this->_secure == 'tls') {
$this->_send('STARTTLS');
$this->_expect(220, 180);
+
+ stream_context_set_option($this->_socket, 'ssl', 'verify_peer', true);
+ //stream_context_set_option($this->_socket, 'ssl', 'verify_peer_name', false);
+ stream_context_set_option($this->_socket, 'ssl', 'allow_self_signed', true);
+
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
/**
* @see Postman_Zend_Mail_Protocol_Exception