dualfroz 0825c8cc83 Don't send QUIT while DATA is in progress
If the connection is closed in the middle of a DATA command, for example
from a destructor after SIGTERM, the server takes QUIT as part of the
message and the connection only ends when it times out. SMTP now keeps
the last command it sent in a state property, and quit() just closes the
connection when that command is DATA, as discussed in #3121.

Fixes #2994
2026-10-02 16:51:33 +02:00
S
Description
My contributions to PHPMailer/PHPMailer: 6 commits, 3 merged PRs
426 KiB
0 Stars 1 Watchers 0 Forks
Languages
PHP 100%