Click to See Complete Forum and Search --> : Mail Cc don't work on windows!!!


Anon
07-12-2001, 07:34 AM
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( "haha@hehe.com", "Subject test", "Body test", "Cc: hihi@hehe.com\r\n" ) 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

Anon
07-30-2001, 01:57 PM
whats the deal with the carriage return??

just try it with \n or nothing at all

simons
07-30-2001, 09:34 PM
On windows platform it should be used \r\n. But if I use \n it wont work anyway. :(

Simon