Add line ending \n after POP3 quit command

This is required by some POP3 servers which will wait until
a newline char which is delimiting all commands. Without it,
the login works, but it waits for the full timeout.
This commit is contained in:
Czirkos Zoltan 2022-10-12 17:47:41 +02:00
parent 12bb746eff
commit 4283eb9720
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ class POP3
*/
public function disconnect()
{
$this->sendString('QUIT');
$this->sendString('QUIT' . static::LE);
// RFC 1939 shows POP3 server sending a +OK response to the QUIT command.
// Try to get it. Ignore any failures here.