ID:               26218
 User updated by:  bzheng at us dot nomura dot com
 Reported By:      bzheng at us dot nomura dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Network related
 Operating System: W2k server/IIS 5/PHP in CGI mode
 PHP Version:      4.3.3
 New Comment:

My mistake.
There is a line "BCC:\n" in the header.
I must have done something wrong in the testing.
My apologies, for wasting your time.


Previous Comments:
------------------------------------------------------------------------

[2003-11-12 18:24:03] [EMAIL PROTECTED]

Unable to replicate with PHP4-LATEST.

Is it possible your To: address has a coma at the end?  The way the
Win32 sendmail code is written a "blank" recipient will be sent as just
RCPT TO:<>.

Issue a var_dump( $t_recipient); prior to sending the mail to be
certain it doesn't have a coma at the end.

Also, if you include headers with blank Cc: or Bcc: lines they will
also exhibit this behavior.



------------------------------------------------------------------------

[2003-11-12 15:24:44] bzheng at us dot nomura dot com

tried and got the same result, now failing on both machines

------------------------------------------------------------------------

[2003-11-12 11:01:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-11-12 09:49:21] bzheng at us dot nomura dot com

just to clarify.
The code is:
$result = mail( "[EMAIL PROTECTED]", "sub", "msg");

------------------------------------------------------------------------

[2003-11-12 09:36:01] bzheng at us dot nomura dot com

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 this bug report at http://bugs.php.net/?id=26218&edit=1

Reply via email to