#26218 [Opn->NoF]: mail() sends extra "RCPT TO: <>" to smtp host
| From: | iliaa@php.net | Date: | Wed, 12 Nov 2003 16:01:15 +0000 |
| Subject: | #26218 [Opn->NoF]: mail() sends extra "RCPT TO: <>" to smtp host | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50277@lists.php.net to get a copy of this message | ||
ID: 26218
Updated by: iliaa@php.net
Reported By: bzheng at us dot nomura dot com
-Status: Open
+Status: No Feedback
Bug Type: Network related
Operating System: W2k server/IIS 5/PHP in CGI mode
PHP Version: 4.3.3
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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");
------------------------------------------------------------------------
[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:<some@somewhere.com>
S:250 2.1.0 <some@somewhere.com> Sender OK
C:RCPT TO:<aa@aa.com>
S:250 2.1.5 <aa@aa.com> 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 = some@somewhere.com
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