A
Anonymous
Guest
I need to add a cc: $email to the send email and don't know how to accomplish this. My mail.php follows:
Thanks in advance,
Larry
Code:
<?php
$subject = $_POST['type'];
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent=" From: $name \n Subject: $subject \n Message: $message";
if ($subject =="Website Problem") {
$recipient="webmaster@foxclone.com" ;
}
else{
$recipient="andyh@foxclone.com";
}
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!" . " -" . "<a href='index3.php' style='text-decoration:none;color:#ff0099;'> Return Home</a>";
?>
Thanks in advance,
Larry