requestAndResponse example

' (errno = ' . $errno . ' )');
        }

        if (!$this->_assumedNextLine('* OK')) {
            /** * @see Zend_Mail_Protocol_Exception */
            throw new Zend_Mail_Protocol_Exception('host doesn\'t allow connection');
        }

        if ($ssl === 'TLS') {
            $result = $this->requestAndResponse('STARTTLS');
            $result = $result && stream_socket_enable_crypto($this->_socket, true, $this->getCryptoMethod());
            if (!$result) {
                /** * @see Zend_Mail_Protocol_Exception */
                throw new Zend_Mail_Protocol_Exception('cannot enable TLS');
            }
        }
    }

    /** * get the next line from socket with error checking, but nothing else * * @return string next line * @throws Zend_Mail_Protocol_Exception */
Home | Imprint | This part of the site doesn't use cookies.