PHP 4.0 Bug #6537: mail() does not seem to handle SMTP multi-line responses
| From: | mlemos at acm dot org | Date: | Mon, 04 Sep 2000 20:19:00 +0000 |
| Subject: | PHP 4.0 Bug #6537: mail() does not seem to handle SMTP multi-line responses | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31972@lists.php.net to get a copy of this message | ||
From: mlemos@acm.org
Operating system: Windows
PHP version: 4.0 Latest CVS (04/09/2000)
PHP Bug Type: Misbehaving function
Bug description: mail() does not seem to handle SMTP multi-line responses
There has been so many people complaining about not being able to
send messages with the mail() function on Windows that I decided to
investigate.
Apparently, it seems that it is not handling SMTP multi-line responses.
Multi-line responses may be returned or not depending on the vendor of the SMTP
server. The way it works is by returning a - character right after the
response code instead of a space. When this is returned, it means that this is
not the last response line. So, the SMTP client has to fetch the next
response line until it finds the last one that has the same response code
followed by a space.
I don't use Windows, so I did not want to fix the problem because I would
not be able to try the fix. Anyway, it seems that all the fixing that is
needed lies within the Ack() function.