浏览代码

When the data stream wasn't ending with \r\n the finalize stream function
could raise a 502 error. I hope this fixes it.

stekkel 21 年之前
父节点
当前提交
e5cd713f54
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/deliver/Deliver_SMTP.class.php

+ 1 - 1
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) {