PHP 4.0 Bug #5136: mail() does not send to multiple recipients correctly.
| From: | joel at intwebservices dot com | Date: | Tue, 20 Jun 2000 00:52:02 +0000 |
| Subject: | PHP 4.0 Bug #5136: mail() does not send to multiple recipients correctly. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21786@lists.php.net to get a copy of this message | ||
From: joel@intwebservices.com
Operating system: Windows NT 4.0
PHP version: 4.0.0 Release
PHP Bug Type: Misbehaving function
Bug description: mail() does not send to multiple recipients correctly.
<?php
//*******************************************************************************
mail("joel@intwebservices.com,webmaster@intwebservices.com", "the subject",
"the message<br> is <br>here",
"From: webmaster@$SERVER_NAME\nCC: webmaster@$SERVER_NAME\nReply-To:
webmaster@$SERVER_NAME\nX-Mailer:PHP/" . phpversion());
?>
<html>
<body>
the mail was sent?
</body>
</html>
Results in rejected email due to incorrect parsing of Host address:
"intwebservices.com,webmaster"
Rejected email says:
The original message was received at Sun, 18 Jun 2000 20:47:25 -0400
from [198.252.45.162]
----- The following addresses had permanent fatal errors -----
<joel@intwebservices.com,webmaster@intwebservices.com>
----- Transcript of session follows -----
550 <joel@intwebservices.com,webmaster@intwebservices.com>... Host unknown (Name server:
intwebservices.com,webmaster: host not found)