#26218 [Opn->Bgs]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218
Updated by: iliaa@php.net
Reported By: bzheng at us dot nomura dot com
-Status: Open
+Status: Bogus
Bug Type: Network related
Operating System: W2k server/IIS 5/PHP in CGI mode
PHP Version: 4.3.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
User error.
Previous Comments:
------------------------------------------------------------------------
[2003-11-12 19:16:13] bzheng at us dot nomura dot com
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.
------------------------------------------------------------------------
[2003-11-12 18:24:03] pollita@php.net
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] iliaa@php.net
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( "aa@aa.com", "sub", "msg");
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/26218
--
Edit this bug report at http://bugs.php.net/?id=26218&edit=1
Thread (7 messages)