Dennis1993
2013-07-26 e9505469030cd5cfd0930c8f12c855057a32cad4
Update SMTP.php
1 files modified
3 ■■■■ changed files
program/lib/Net/SMTP.php 3 ●●●● patch | view | raw | blame | history
program/lib/Net/SMTP.php
@@ -595,7 +595,8 @@
         * extension, are connected to an SMTP server which supports the 
         * STARTTLS extension, and aren't already connected over a secure 
         * (SSL) socket connection. */
        if ($tls && extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) &&
        if ($tls && version_compare(PHP_VERSION, '5.1.0', '>=') &&
            extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) &&
            strncasecmp($this->host, 'ssl://', 6) !== 0) {
            /* Start the TLS connection attempt. */
            if (PEAR::isError($result = $this->_put('STARTTLS'))) {