浏览代码

fixed bug in sending messages. It wasn't putting a blank line between the
header and the body.

Luke Ehresman 25 年之前
父节点
当前提交
e0675f325a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      functions/smtp.php

+ 2 - 0
functions/smtp.php

@@ -144,6 +144,7 @@
          fputs($fp, "Content-Type: text/plain; charset=ISO-8859-1\n");
          fputs($fp, "Content-Transfer-Encoding: 8bit\n");
       }
+      fputs ($fp, "\n");
    }
 
    // Send the body
@@ -157,6 +158,7 @@
         fputs ($fp, "\n--".mimeBoundary()."--\n");
      } else {
        fputs ($fp, stripslashes($body) . "\n");
+       fputs ($fp, "\n");
      }
    }