Please tell us what you think about our web site, company, products, or services. If you provide us with your contact
information, we will be able to reach you in case we have any questions.
Your message has been processed. Thank you!");
printf("\n\n
",$whence,$reqitem);
$comments= $_POST['ProductComments'];
if ($Name!="")
$subject= "Comment from " . $Name;
else
$subject= "Comment from visitor";
$to= $FEEDBACK_RECIP;
$contactinfo= "";
if($Name!="")
$contactinfo = "\tContact Name\t ". $Name . "\n";
if($Title!="")
$contactinfo .= "\tTitle\t\t ". $Title . "\n";
if($Company!="")
$contactinfo .= "\tCompany\t". $Company . "\n";
if($Address!="")
$contactinfo .= "\tAddress\t". $Address . "\n";
if($City!="")
$contactinfo .= "\tCity\t\t". $City . "\n";
if($State!="")
$contactinfo .= "\tState\t\t". $State . "\n";
if($Zip!="")
$contactinfo .= "\tZip Code\t". $Zip . "\n";
if($Telephone!="")
$contactinfo .= "\tTelephone\t". $Telephone . "\n";
if($FAX!="")
$contactinfo .= "\tFax\t\t". $FAX . "\n";
$contactinfo .= "\te-mail\t\t ". $address . "\n";
if($comments!="")
$contactinfo .= "\tComments:\t [". $comments . "]\n";
$message= "Hello " . $CONTACT_NAME . "-\n\n".
"New visitor comments were just received...\n\n".
"Here is what I know about the contact:\n\n" . $contactinfo .
"\n\nA confirmation message has been sent to the contact." .
"\n\nThanks,\n\nThe " . $COMPANY_NAME . " Messaging Center";
$additional= "From: " . $FEEDBACK_SENDER . " \r\n"
. "Reply-To: " . $FEEDBACK_REPLYTO;
mail($to, $subject, $message, $additional);
$message2= "Hello ";
if($Name!="")
$message2 .= $Name;
$message2 .= "\n\nYour comments have been received by " . $COMPANY_NAME . "\n" .
"Thank you for your comments! We appreciate your input.\n\n" .
$COMPANY_NAME . " Customer Service";
$subject= $COMPANY_NAME . " Feedback Confirmation";
mail($address, $subject, $message2, $additional);
}
else
printf("\n
*** Please enter a valid e-mail address ***
");
}
?>