From 2e1765532ac78e25d39f065dbd25b84c1f920b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 28 Feb 2021 00:27:36 +0200 Subject: [PATCH] fixup! Use fgets and detect partial line reads --- src/Protocol/Smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Smtp.php b/src/Protocol/Smtp.php index 2137f8ad..e8bbc453 100644 --- a/src/Protocol/Smtp.php +++ b/src/Protocol/Smtp.php @@ -359,7 +359,7 @@ public function data($data) $line = substr(chunk_split($line, 998, Headers::FOLDING), 0, -strlen(Headers::FOLDING)); } - $this->send($line); + $this->_send($line); } fclose($fp);