diff --git a/include/pear/Net/SMTP.php b/include/pear/Net/SMTP.php index 8f4e92b7532a0c51f97219017a246574d3d17d8c..530f558c9c39e0fca73fa98a431eeb5bd3cbd9fd 100644 --- a/include/pear/Net/SMTP.php +++ b/include/pear/Net/SMTP.php @@ -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;