I have a test script already. Bcc doesn't work on either.
<?php $headers = "From: [EMAIL PROTECTED]" . "\r\n"; $headers .= "Bcc: [EMAIL PROTECTED]" . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n"; mail("[EMAIL PROTECTED]", "test", "test", $headers); ?> And <?php $headers = "From: [EMAIL PROTECTED]" . "\n"; $headers .= "Bcc: [EMAIL PROTECTED]" . "\n"; $headers .= "X-Mailer: PHP/" . phpversion() . "\n"; mail("[EMAIL PROTECTED]", "test", "test", $headers); ?> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of csnyder Sent: Monday, August 04, 2008 3:37 PM To: NYPHP Talk Subject: Re: [nyphp-talk] PHP Bcc Headers On Mon, Aug 4, 2008 at 3:17 PM, (Margaret) Michele Waldman <[EMAIL PROTECTED]> wrote: > I'm using "\r\n" at the end of each line. > > The headers are being completely ignored. > > I'll try switching. The did cross my mind before, but I wasn't sure what to > test other than "\r\n". Completely ignored is probably a bad sign, but you could try using just "\n". When that doesn't work, try setting just a single "X-sent-by: php" header to avoid line-ending issues altogether. It may be worth creating a test script that does nothing but send a simple email so you can isolate the problem from other potential bugs, post the code to this list for review, etc. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php