Explorar o código

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

pallo %!s(int64=24) %!d(string=hai) anos
pai
achega
82b6e4732b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      functions/smtp.php

+ 2 - 2
functions/smtp.php

@@ -365,12 +365,12 @@
          errorCheck($tmp, $smtpConnection);
       }
       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);
          errorCheck($tmp, $smtpConnection);
       }
       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);
          errorCheck($tmp, $smtpConnection);
       }