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

From: Date: Fri, 21 Jun 2002 15:48:24 +0000
Subject: Re: Cc / Bcc don't work on win2k but on linux???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-103293@lists.php.net to get a copy of this message
hm... but isn't it weird to include the cc: recipient within to: and then specifying them under cc: again? cos wouldn't it be more straight forward just to simply include all the recipient in cc: to to: and omit the cc: list. and specifying the recipient that is suppose to be in Bcc: under To:, i believe its already telling everybody who will be receiving that email. there is no more reason to stick their email in Bcc: list. am i right to say that? Lowell Allen wrote:
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 (#103293) next »