Browse Source

Removed extra <> around RCPT TO addresses that made some mail-servers fail.

pallo 24 years ago
parent
commit
82b6e4732b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      functions/smtp.php

+ 2 - 2
functions/smtp.php

@@ -365,12 +365,12 @@
          errorCheck($tmp, $smtpConnection);
          errorCheck($tmp, $smtpConnection);
       }
       }
       for ($i = 0; $i < count($cc); $i++) {
       for ($i = 0; $i < count($cc); $i++) {
-         fputs($smtpConnection, "RCPT TO: <$cc[$i]>\r\n");
+         fputs($smtpConnection, "RCPT TO: $cc[$i]\r\n");
          $tmp = fgets($smtpConnection, 1024);
          $tmp = fgets($smtpConnection, 1024);
          errorCheck($tmp, $smtpConnection);
          errorCheck($tmp, $smtpConnection);
       }
       }
       for ($i = 0; $i < count($bcc); $i++) {
       for ($i = 0; $i < count($bcc); $i++) {
-         fputs($smtpConnection, "RCPT TO: <$bcc[$i]>\r\n");
+         fputs($smtpConnection, "RCPT TO: $bcc[$i]\r\n");
          $tmp = fgets($smtpConnection, 1024);
          $tmp = fgets($smtpConnection, 1024);
          errorCheck($tmp, $smtpConnection);
          errorCheck($tmp, $smtpConnection);
       }
       }