Carbon Copy

A

Anonymous

Guest
Guys

How can we include a cc in php mail

what is the syntax?

I have this right now, where will i place the cc?

Code:
mail ("{$_POST['to']}", "Greetings",$body, "From: {$_POST['email']} ");

thanks
 
add a header
Cc: emailaddress@email.com
separate the headers by \r\n
 
it will make life hell of a lot easier if you have all the header info in variable

Code:
$header = "From: {$_POST['email']}\r\n";
$header. = "Cc: {$_POST['ccemail']}\r\n";

mail ("{$_POST['to']}", "Greetings",$body, $header);

but that is just me :p
 
Back
Top