PHPMailer\PHPMailer
SMTP::quit()
Send an SMTP QUIT command. Closes the socket if there is no error or the $close_on_error argument is true. Implements from RFC 821: QUIT <CRLF>.
Метод класса: SMTP{}
Хуков нет.
Возвращает
true|false
.
Использование
$SMTP = new SMTP(); $SMTP->quit( $close_on_error );
- $close_on_error(true|false)
- Should the connection close if an error occurs?
По умолчанию: true
Код SMTP::quit() SMTP::quit WP 6.5.2
public function quit($close_on_error = true) { $noerror = $this->sendCommand('QUIT', 'QUIT', 221); $err = $this->error; //Save any error if ($noerror || $close_on_error) { $this->close(); $this->error = $err; //Restore any error from the quit command } return $noerror; }