Hello everyone, I have used this same email script close to a hundred times now on different sites. For whatever reason, this will not send the email to the CC, any suggestions?
PHP Code:
<?php
$to = "*************" ;
$cc = "*************" ;
$from = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$comment = $_REQUEST['comment'] ;
$headers = "From: $from";
$headers = "Cc: $cc";
$subject = "Online Contact Form";
$fields = array();
$fields{"name"} = "Name";
$fields{"email"} = "Email";
$fields{"comment"} = "Comment";
$body = "We have received the following information:\n\n";
foreach($fields as $a => $b)
{ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
$send = mail($to, $subject, $body, $headers);
header( "Location: *********************" );
?>