I just started using PHP4 yesterday, so I'm a bit feeble.
My problem is that I've set up a form to mail user input to myself, but I also have given them an input field for an address to CC the data to.
But the CC address is not receiving mail...
I've currently got the CC Address in the $headers variable...
<?
$to = "troy_php4@textheavy.com";
$subject = "submission from PHP4 Sandbox";
$msg = $message;
$headers = "cc: $self";
mail("$to", "$subject", "$msg", "$headers");
?>
It's showing up on the mail header that arrives as a CC address, but it's not actually going to the CC address.
I've tried inserting a variable called "cc" and including it in the mail() list, but that didn't work.
Then I tried setting up a second mail() on the same file, after the first, that overwrote the $to with the data from the user input variable $self.
That's not working either.
I just did a search on "cc field mail()" and got nothing in the way of clear results.
Any thoughts aside from RTFM?