From 034d694ac7e37b7bf6065bcfd41b9a20dcc3f9d8 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 30 Mar 2004 17:42:21 +0000 Subject: [PATCH] When the data stream wasn't ending with \r\n the finalize stream function could raise a 502 error. I hope this fixes it. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6973 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver_SMTP.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/deliver/Deliver_SMTP.class.php b/class/deliver/Deliver_SMTP.class.php index bf2cb2ec..d1b5c950 100644 --- a/class/deliver/Deliver_SMTP.class.php +++ b/class/deliver/Deliver_SMTP.class.php @@ -218,7 +218,7 @@ class Deliver_SMTP extends Deliver { } function finalizeStream($stream) { - fputs($stream, ".\r\n"); /* end the DATA part */ + fputs($stream, "\r\n.\r\n"); /* end the DATA part */ $tmp = fgets($stream, 1024); $this->errorCheck($tmp, $stream); if ($this->dlv_ret_nr != 250) { -- 2.25.1