";
$subject = "Contact Form Submitted";
if (mail($to, $subject, $body))
{
echo "Thank you!
\nYour contact submission has reached
our server.
You will hear from us shortly.
\n";
} else {
echo "Oops!
\nWe're sorry, there was an error mailing
your information.
Please use other means to contact us.
\n";
}
// append to a log file too, in case mail fails
// directory "form_logs/" must already exist
if (!$LOG = fopen("form_logs/contactlog.txt","a"))
{ die($php_errormsg); }
if (-1 == fwrite($LOG, $body))
{ die($php_errormsg); }
fclose($LOG) or die($php_errormsg);
} else {
?>
Want to know more?
Please use this form to tell us how we can serve you.