How do I add a CC to this php email script?
Posted: Tue Dec 02, 2003 2:08 pm
Hi all,
I have this bit of script I worked on a long time ago but the boss now wants me to add a cc to the email. It must be put near the From : but I can't remember.
[syntax=php]$headers .= "From: Company <chris@me.net>\r\n";
mail($email, $subject, $msg, $headers);
$msg2 = 'A demo of Freeform DF was requested by '.$email;
mail("chris@forge.net","FF DF Demo Requested", $msg2, $headers);
include("http://www.mettle-animation.com/forge/thankYou.htm");
$file=fopen("demoEmailList.txt", "a+");
fwrite($file, $email."\n");
fclose($file);[/syntax]
I have this bit of script I worked on a long time ago but the boss now wants me to add a cc to the email. It must be put near the From : but I can't remember.
[syntax=php]$headers .= "From: Company <chris@me.net>\r\n";
mail($email, $subject, $msg, $headers);
$msg2 = 'A demo of Freeform DF was requested by '.$email;
mail("chris@forge.net","FF DF Demo Requested", $msg2, $headers);
include("http://www.mettle-animation.com/forge/thankYou.htm");
$file=fopen("demoEmailList.txt", "a+");
fwrite($file, $email."\n");
fclose($file);[/syntax]