Nette\Mail\SmtpMailer::read PHP Method

read() protected method

Reads response from server.
protected read ( ) : string
return string
    protected function read()
    {
        $s = '';
        while (($line = fgets($this->connection, 1000.0)) != NULL) {
            // intentionally ==
            $s .= $line;
            if (substr($line, 3, 1) === ' ') {
                break;
            }
        }
        return $s;
    }