$this->
_send('STARTTLS'
);
$this->
_expect(220, 180
);
if (!
stream_socket_enable_crypto($this->_socket, true,
$this->
getCryptoMethod())) { /**
* @see Zend_Mail_Protocol_Exception
*/
throw new Zend_Mail_Protocol_Exception('Unable to connect via TLS'
);
} $this->
_ehlo($host);
} $this->
_startSession();
$this->
auth();
} /**
* 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
*/