From: bzheng at us dot nomura dot com Operating system: W2k server/IIS 5/PHP in CGI mode PHP version: 4.3.3 PHP Bug Type: Network related Bug description: mail() sends extra "RCPT TO: <>" to smtp host
Description: ------------ calling mail() function causes PHP to send out an extra "RCPT TO: <>" command to the SMTP host. Packet sniffer shows: ... C:MAIL FROM:<[EMAIL PROTECTED]> S:250 2.1.0 <[EMAIL PROTECTED]> Sender OK C:RCPT TO:<[EMAIL PROTECTED]> S:250 2.1.5 <[EMAIL PROTECTED]> Recipient OK C:RCPT TO:<> S:553 5.0.0 <> User address required related entries in php.ini [mail function] ; For Win32 only. SMTP = mailhost.aa.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] The weird thing is, the same code works on another machine that has exactly the same php.ini and php software as the machine having problems. Reproduce code: --------------- $result = mail( $t_recipient, "test", "test msg"); where $t_recipient is a valid SMTP email address. Expected result: ---------------- $result == true; Actual result: -------------- $result == false; -- Edit bug report at http://bugs.php.net/?id=26218&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26218&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26218&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26218&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26218&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26218&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26218&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26218&r=support Expected behavior: http://bugs.php.net/fix.php?id=26218&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26218&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26218&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26218&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26218&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26218&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26218&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26218&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26218&r=float