#28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
| From: | php at shitware dot nl | Date: | Mon, 04 May 2009 12:43:26 +0000 |
| Subject: | #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136723@lists.php.net to get a copy of this message | ||
ID: 28038
Comment by: php at shitware dot nl
Reported By: jordi at jcanals dot net
Status: Open
Bug Type: Mail related
Operating System: win32 only
PHP Version: 5CVS, 6CVS (2008-10-24)
New Comment:
Go ahead (the address DOES exist)
Previous Comments:
------------------------------------------------------------------------
[2009-04-16 12:54:47] jitendra1212 at gmail dot com
send how mail ?
------------------------------------------------------------------------
[2009-04-06 14:29:44] php at shitware dot nl
I'm no C expert, but wouldn't this provide a quick fix:
instead of:
snprintf(Buffer, MAIL_BUFFER_SIZE, "RCPT TO:<%s>\r\n", token);
use:
snprintf(Buffer, MAIL_BUFFER_SIZE, token[(strlen(token)-1)] == ">" ?
"RCPT TO:%s\r\n" : "RCPT TO:<%s>\r\n", token);
for EVERY use of token (including RPath)?
(plain e-mail addresses are still placed between <...>, formatted
e-mail addresses get in the transaction unaltered)
I tried setting up the Windows build environment to test this, but got
lost in the different how-to's ...
------------------------------------------------------------------------
[2009-03-12 19:49:06] feamsr00 at feamsternet dot net
exact same here *bump*
PHP 5.2.8 (cli) (built: Feb 4 2009 17:55:55)
Microsoft Windows XP [Version 5.1.2600]
------------------------------------------------------------------------
[2009-02-24 23:25:22] mark at lbisat dot com
By modifying the following in PHP.ini
[mail function]
sendmail_from = email@domain.com
It fixed the issue for me on Windows 2003 Server SP2.
------------------------------------------------------------------------
[2009-02-19 19:39:06] alexcomboy at hotmail dot co dot uk
It does not work with this either:
Windows XP SP2 or SP3, IIS 5.1, PHP 5.2.8
------------------------------------------------------------------------
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/28038
--
Edit this bug report at http://bugs.php.net/?id=28038&edit=1