$auth_domain = array("railroadst.com","pro-liability.com");
$to = "charlesr@uga.edu";
$subject = "Quote request from your website";
if (isset($HTTP_REFERER)) {
foreach ($auth_domain as $line) {
if (eregi($line,$HTTP_REFERER)) {
$check_url = 1;
continue;
}
}
}else{
$check_url = 1;
}
if ($check_url != 1) {
echo "error=this formmail is not allowed in your domain";
exit;
}
$date = getdate(time());
$date = sprintf("%s %s %s %s:%s:%s", $date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]);
$from = "$name<$email> ";
$header = "From:$from\n";
$header .= "Reply-To:$from\n";
$body = "The following quote request was submitted by: \n";
$body .= "$name on $date\n\n";
$body .= "---------------------------------------------------------------\n\n";
$body .= "$comments\n\n";
$body .= "---------------------------------------------------------------\n\n";
$body .= "