Browse Source

Reinstating fix for the "to" addresses. Hopefully won't need them for CC
and BCC.

Tyler Akins 24 years ago
parent
commit
a15a0caec8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      functions/smtp.php

+ 2 - 5
functions/smtp.php

@@ -516,11 +516,8 @@
       $body = ereg_replace("\r\n", "\n", $body);
       $body = ereg_replace("\n", "\r\n", $body);
       
-      // Make sure that $t, $c, and $b do not contain newlines.
-      // I don't think they are needed anymore
-      //$t = ereg_replace("[\n|\r]", "", $t);
-      //$c = ereg_replace("[\n|\r]", "", $c);
-      //$b = ereg_replace("[\n|\r]", "", $b);
+      // Make sure that $t does not contain newlines.
+      $t = ereg_replace("[\n|\r]", "", $t);
 
       if ($useSendmail) {
          $length = sendSendmail($t, $c, $b, $subject, $body, $more_headers);