Mail problem

From: Date: Tue, 27 May 2003 10:39:20 +0000
Subject: Mail problem
Groups: php.general 
Request: Send a blank email to php-general+get-149070@lists.php.net to get a copy of this message
Hi, I'm using PHP 4.3.1 on Win98 and I have a problem with sending E-mail with "CC:" header. I use following code: *--------------- $to="user1@host1.com"; $message="sometext..."; $subject="somesubject"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: Somebody <somebody@somehost.com>\r\n"; $headers .= "Cc: Support <anotheruser@anotherhost.com>\r\n"; mail($to, $subject, $message, $headers); ------------------ The problem is in the "Cc: Support <anotheruser@anotherhost.com>\r\n". If I write it "Cc: anotheruser@anotherhost.com\r\n" - i.e. only E-mail adress without "Support <..mailadress>" - it works. Can someone tell me where is the problem ? Thanks, Rosen

« previous php.general (#149070) next »