NYCPHP Meetup

NYPHP.org

mail() Bcc question (PHP4.2.1/WinNT)

Freedman, Tom S. tfreedma at ubspw.com
Thu Sep 19 11:11:35 EDT 2002


Hi all!

I'm stumped.  I'm trying to send an email to one person, make it from a
departmental address, and bcc myself.  I've gotten a CC working, but it
seems to ignore the BCC header.  The code I'm using looks like this:

$to = "joe.shmoe at company.com"
$subject = "Re: foo";
$msgBody = "bar";

$headers = "From: <dept at company.com>\\r\
";
$headers .= "Cc: <dept at company.com>\\r\
";
$headers .= "Bcc: <me at company.com>\\r\
";

mail("$to", "$subject", "$msgBody", "$headers");

So, in the testing I've done, I can CC the department, and I can CC myself.
But it just seems to ignore the BCC header entirely.  I don't get any kinds
of errors or returned mail, and I don't have access to the Exchange logs.
Does anyone have any ideas?

Thanks,
Tom



More information about the talk mailing list