#28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
From: php at shitware dot nl Date: Mon, 06 Apr 2009 14:29:45 +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-135592@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:
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 ...
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2009-01-19 21:20:39] abba000 at o2 dot pl
4 years have passed and nothing... What the hell? This is really
important! Anybody knows how to fix it?
------------------------------------------------------------------------
[2009-01-12 11:49:18] julioworld at hotmail dot com
I also had this problem and I solved it by adding this line in the
php.ini in the section [mail function]:
[mail function]
sendmail_from = email@domain.com
------------------------------------------------------------------------
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
Thread (45 messages)
- #28038 [Opn->Bgs]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Bgs->Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn->Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn->Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn->Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn->Csd]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Csd]: Sent incorrect RCPT TO commands to SMTP server
- Bug #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- Bug #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
| « previous | php.bugs (#135592) | next » |
|---|