Re: Mail problem

From: Date: Tue, 27 May 2003 15:42:47 +0000
Subject: Re: Mail problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149127@lists.php.net to get a copy of this message
I don't believe you can use the form of "Someone <someone@foo.com>". 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 <rosen@pernikinfo.com> 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="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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Mark Weinstock mark_weinstock@yahoo.com *************************************** 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

« previous php.general (#149127) next »