Quote:
Originally Posted by Dave
|
thanks for reply
I used some code that learned from here:
https://www.vbulletin.com/forum/foru...ith-php-5-6-11
this code worked for me:
PHP Code:
$opts = array('ssl' => array("verify_peer" => true,"verify_peer_name" => false,"allow_self_signed" => true));
$context = stream_context_create($opts);
$this->smtpSocket = stream_socket_client($stream . $this->smtpHost . ':' . $this->smtpPort, $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $context);
the above code must replace to this code in line 756:
PHP Code:
$this->smtpSocket = fsockopen($stream . $this->smtpHost, $this->smtpPort, $errno, $errstr, 30);