_assumedNextLine example

$errno  =  0;
        $errstr = '';
        $this->_socket = @fsockopen($host$port$errno$errstr, self::TIMEOUT_CONNECTION);
        if (!$this->_socket) {
            /** * @see Zend_Mail_Protocol_Exception */
            throw new Zend_Mail_Protocol_Exception('cannot connect to host; error = ' . $errstr .
                                                   ' (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 */
Home | Imprint | This part of the site doesn't use cookies.