protected function _ehlo($host)
    {
        // Support for older, less-compliant remote servers. Tries multiple attempts of EHLO or HELO.
        try {
            $this->_send('EHLO ' . $host);
            $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2
        } catch (Zend_Mail_Protocol_Exception $e) {
            $this->_send('HELO ' . $host);
            $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2
        } catch (Zend_Mail_Protocol_Exception $e) {
            throw $e;
        }
    }
protected function _ehlo($host)
    {
        // Support for older, less-compliant remote servers. Tries multiple attempts of EHLO or HELO.
        try {
            $this->_send('EHLO ' . $host);
            $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2
        } catch (Zend_Mail_Protocol_Exception $e) {
            $this->_send('HELO ' . $host);
            $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2
        } catch (Zend_Mail_Protocol_Exception $e) {
            throw $e;
        }
    }
protected function _ehlo ( $ host ) { // Support for older, less-compliant remote servers. Tries multiple attempts of EHLO or HELO. try { $ this -> _send ( 'EHLO ' . $ host ) ; $ this -> _expect ( 250 , 300 ) ; // Timeout set for 5 minutes as per RFC 2821 4.5.3.2 } catch ( Zend_Mail_Protocol_Exception $ e ) { $ this -> _send ( 'HELO ' . $ host ) ; $ this -> _expect ( 250 , 300 ) ; // Timeout set for 5 minutes as per RFC 2821 4.5.3.2 } catch ( Zend_Mail_Protocol_Exception $ e ) { throw $ e ; } }
Send EHLO or HELO depending on capabilities of smtp host

@param  string $host The client hostname or IP address (default: 127.0.0.1)
@throws Zend_Mail_Protocol_Exception
@return void
Send EHLO or HELO depending on capabilities of smtp host