I don't believe you can use the form of "Someone <[EMAIL PROTECTED]>". I believe this is what the MTA receives as the MAIL TO (not to be confused with eth To: header), and it's not a legal format for that.
--- Rosen <[EMAIL PROTECTED]> wrote: > 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="[EMAIL PROTECTED]"; > $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 <[EMAIL PROTECTED]>\r\n"; > > $headers .= "Cc: Support <[EMAIL PROTECTED]>\r\n"; > > mail($to, $subject, $message, $headers); > ------------------ > > The problem is in the "Cc: Support > <[EMAIL PROTECTED]>\r\n". > If I write it "Cc: [EMAIL PROTECTED]" - i.e. only > E-mail > adress without "Support <..mailadress>" - it works. > > Can someone tell me where is the problem ? > Thanks, > Rosen > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Mark Weinstock [EMAIL PROTECTED] *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. *************************************** __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php