When the data stream wasn't ending with \r\n the finalize stream function
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Mar 2004 17:42:21 +0000 (17:42 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Mar 2004 17:42:21 +0000 (17:42 +0000)
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

index bf2cb2ec877944c3da2c5d95b6db31c06630116d..d1b5c950e21fa7381f8bc033d8988ff42db5cd7a 100644 (file)
@@ -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) {