Mailer = "mail";
$mail->Host = "localhost";
$mail->From = $_POST['txtEmail'];
$mail->FromName = $_POST['txtFirstName']." ".$_POST['txtLastName'];
$mail->AddAddress("lead@gurrentz.com", "Gurrentz Web Contact Form");
$mail->AddReplyTo($_POST['txtEmail']);
$mail->IsHTML(False);
// compose text body:
$body = "From:\n";
$body .= " Name: ".$_POST['txtFirstName']." ".$_POST['txtLastName']."\n";
$body .= " Company: ".$_POST['txtCompany']."\n";
$body .= " Email: ".$_POST['txtEmail']."\n\n";
$body .= "Comments:\n\n";
$body .= $_POST['txtComments']."\n";
$mail->Subject = "Gurrentz website message from ".$_POST['txtFirstName']." ".$_POST['txtLastName'];
$mail->Body = $body;
if(!$mail->Send())
{
$result_message .= "Mailer Error: " . $mail->ErrorInfo;
header('Location: contact_error.htm' );
exit;
} else {
header('Location: contact_thankyou.htm' );
}
}
}
?>
Gurrentz International Corporation
Contact Us
Please fix the following errors:\n";
foreach ($errors as $error)
echo "- $error
\n";
echo " ";
}
if (!empty($success_message))
{
echo "$success_message ";
}
?>
|
Sales/Purchasing:
Rodger Gurrentz, Patrick Gurrentz or Dennis Kosko
meat@gurrentz.com
Office: |
412-351-3200 |
Toll Free: |
800-245-6113 |
Fax: |
412-351-4051 |
|
|
|
|