Zend\Mail\Protocol\AbstractProtocol::_expect
Parse server response for successful codes
Read the response from the stream and check for expected return code. Throws a Zend\Mail\Protocol\Exception\ExceptionInterface if an unexpected code is returned.
Signature
protected function _expect(string|array
$code,
[int
$timeout = null] )
Parameters
$code
— object- One or more codes that indicate a successful response
$timeout
— int- Per-request timeout value if applicable
Returns
- string
- Last line of response string