Skip to content
Snippets Groups Projects
Commit 4f68aeb3 authored by Peter Rotich's avatar Peter Rotich
Browse files

PEAR: Turn off peer name verification (SMTP)

parent 865db9b5
Branches
Tags
No related merge requests found
......@@ -166,6 +166,13 @@ class Net_SMTP
$this->pipelining = $pipelining;
$this->socket = new Net_Socket();
// Turn off peer name verification by default
if (!$socket_options)
$socket_options = array(
'ssl' => array('verify_peer_name' => false)
);
$this->socket_options = $socket_options;
$this->timeout = $timeout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment