When the data stream wasn't ending with \r\n the finalize stream function
[squirrelmail.git] / 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) {