PHPMailer\PHPMailer\SMTP::quit PHP Метод

quit() публичный Метод

Closes the socket if there is no error or the $close_on_error argument is true. Implements from rfc 821: QUIT
public quit ( boolean $close_on_error = true ) : boolean
$close_on_error boolean Should the connection close if an error occurs?
Результат boolean
    public function quit($close_on_error = true)
    {
        $noerror = $this->sendCommand('QUIT', 'QUIT', 221);
        $err = $this->error;
        //Save any error
        if ($noerror or $close_on_error) {
            $this->close();
            $this->error = $err;
            //Restore any error from the quit command
        }
        return $noerror;
    }