> I'm using Apache 1.3.14 on WIN NT, and can't send mail to more than one
> recipient using the PHP-mail command.
>
> I've checked php.ini, and everything seems to be fine...
>
> This is an example that won't work (but should have worked..?)
>
> mail("[EMAIL PROTECTED], [EMAIL PROTECTED]","subject","content");
>
> This one however turns out fine:
>
> mail("[EMAIL PROTECTED]","subject","content");
>
> I have also tried to "manipulate" the header with "cc:", but no copy
> arrives, only the one in the "to:" field.
The To: parameter technically is only required to accept one (1) email.
Many mail programs will accept multiple recipients there and DWIM and Cc:
them. Your mail program is apparently not one of those.
The Cc: thing with the extra headers should work on all compliant mail
servers...
$headers = "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "From: [EMAIL PROTECTED]\r\n";
$headers .= "Reply-to: [EMAIL PROTECTED]\r\n";
mail("[EMAIL PROTECTED]", "subject", "content", $headers);
Note that \r\n is spec, but many mail programs also accept \n only and DWIM.
I'm guessing yours doesn't and that's what messed you up...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]