Contact
Us
$mailtoto = "info@ipdstraining.com"; //who this email will finally go to
$mailtosubject = "Email Test"; //what you want the subject of the email to be
if ($submit) { //if they hit a submit button to get here
if (!$name || !$email) {
?>
Please
hit the "back" button on your browser
an make sure all required fields have been filed
out.
} else {
?>
Thank
you for contacting us, we will reply within 48 hours/72 hours if
received on weekend or holiday.
//mail all this stuff
MAIL(
"$mailtoto",
"$mailtosubject",
"
Name: $name\n
Telephone: $phone\n
Email: $email\n
Questions and Comments: $questioncomment\n",
"From: $email\nX-Mailer: PHP/" . phpversion()
); // end mail function
}
} else { ?>
} ?> |