소스 검색

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