ID:               12105
 Comment by:       nick at solv dot it
 Reported By:      simon at vizija dot si
 Status:           Bogus
 Bug Type:         Mail related
 Operating System: Windows 2000 proffesional
 PHP Version:      4.0.6
 New Comment:

You must place '\r\n' before each item in the header.
Also for Cc's and Bcc's use uppercase. ie. 'BCC'

For example:
$header = "From:[EMAIL PROTECTED]";
$header.= "\r\nCC:[EMAIL PROTECTED]";
$header.= "\r\nBCC:[EMAIL PROTECTED]";


Previous Comments:
------------------------------------------------------------------------

[2001-07-12 10:51:18] [EMAIL PROTECTED]

This is not a bug. PHP's mail() function on Win2K uses a own
implementation to talk to a mailserver. This code is not very smart at
this moment, but a rewrite is on it's way (other bugs are posted for
that).
Bogusifying this one.

Derick

------------------------------------------------------------------------

[2001-07-12 10:35:01] simon at vizija dot si

Hi,

In mail function on windows for windows paltform there is a nasty bug
(I think).
I'm trying to execute folowing code, but it crashes every time :(((

<?php
mail( "[EMAIL PROTECTED]", "Subject test", "Body test", "Cc:
[EMAIL PROTECTED]" ) or die( "Cannot send mail" );
?>

If I instead Cc (wich is right on windows) write cc (small caps), then
mail is sent, but without cc copy!! If I leave Cc (first letter Upper
second Lower) then I get this error message:

Warning: Server Error in C:\razvoj\slowwwenia\massmail\test.php on line
2
Cannot send mail

I have tested this on the Windows 2000 proffesional and IIS 5.0 with
PHP 4.0.4pl1 installed as ISAPI module. I have tested it with PHP 4.0.6
too and still didn't work :((
Is there any solution for this problem?

Thanks for any help
Simon

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=12105&edit=1

Reply via email to