Browse Source

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

Luke Ehresman 25 năm trước cách đây
mục cha
commit
e0675f325a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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");
      }
    }