Ok i have got a BCC to work on this but when i do it changes the way the email shows up in the inbox to showing the domain email instead of the Name it's from. I know there should be a way to stop that, Can someone help, i have been fighting this for a few days now i know from what i've read that i should be using this somewhere ( -f parameter ) but not sure where or how to put that in for it to show right...
<?php
$SendTo = "email";
$subject = "subject mattter";
$headers = 'From: Complaint';
$headers = 'BCC: email';
$forward = 1;
$location = "http://www.hopkinscountyhumanesociety.org/thank-you";
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
mail($SendTo, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo "Thank you for submitting our form. We will get back to you as soon as possible.";
}
?>