I am trying to send a cc with an email. The manuel said windows is a prob w/cc, but our system is on Linux with Apache, even though when we are working we are using Windows, we upload it to Linux. So I am assuming that Windows is not the problem?
Here is my code:
$headers = "From: name <address>\r\n";
$headers .= "Cc: [email]myname@yahoo.com[/email]";
mail("myname@yahoo.com", "$subject", "$a_email", "$headers");
I also tried $headers without "", since I've seen examples of variables with & without them. and:
mail($to, $sub, $msg, "From: [email]name@name.com[/email]\r\n"
."Cc: [email]myname@yahoo.com[/email]"); //this didn't work either
The email sends to the to address fine, but never cc to the cc address (which is actually the same address for testing purposes).
Thanks if anyone can help me.