Re: Cc / Bcc don't work on win2k but on linux???

From: Date: Fri, 21 Jun 2002 15:32:20 +0000
Subject: Re: Cc / Bcc don't work on win2k but on linux???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103287@lists.php.net to get a copy of this message
> From: Lance <lornie@magix.com.sg> > > i tried that. using different email addresses. all of them are valid. > still getting the same error. however, when i change the "Cc" to "cc", > no error was thrown. but only the To: will receive the email. the Cc: > never get the mail. > > any other thoughts on that? > You need to include cc: and Bcc: addresses in the first parameter and repeat in the headers, for example: mail('receiver@domain.com, courtesycopy@domain.com, blindcc@domain.com', 'subject', 'message', "To: Receiver <receiver@domain.com>\n" . "From: Sender <sender@somedomain.com>\n" . "cc: Courtesy <courtesycopy@domain.com>\n" . "Bcc: Blind <blindcc@domain.com>\n"); "Cc" does not work, but "cc" or "CC" does, and on Windows servers the Bcc: header is not removed when sending, so recipients can see Bcc: receivers by examining the headers. This is from Kevin Yank's "Advanced email in PHP" on WebmasterBase.com. -- Lowell Allen

« previous php.general (#103287) next »