diff --git a/upload/system/library/mail/smtp.php b/upload/system/library/mail/smtp.php index 0843b7fa7..708e59058 100644 --- a/upload/system/library/mail/smtp.php +++ b/upload/system/library/mail/smtp.php @@ -247,14 +247,10 @@ public function send(): bool { } } - fwrite($handle, '.' . "\r\n"); + fwrite($handle, data: '.' . "\r\n"); $this->handleReply($handle, 250, 'Error: DATA not accepted from server!'); - fwrite($handle, 'QUIT' . "\r\n"); - - $this->handleReply($handle, 221, 'Error: QUIT not accepted from server!'); - fclose($handle); return true;