|
include_once("php/vdaemon.php");
//if no errors were found by the VDaemon, process the file upload and ultimately the email to us.
if ($oVDaemonStatus && $oVDaemonStatus->bValid) {
include("php/mimeDecode.php");
include("php/mimeMail.php");
$email = $_POST['email'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$telephone = $_POST['telephone'];
$question = $_POST['question'];
$body = <<from = "dave@4FitBodies.com";
$mail->from_name = "4FitBodies.com";
$mail->to = $email;
$mail->subject = "We received your Question/Comment about 4FitBodies.com!";
$mail->body = $body;
$mail->send();
//send response to site owner
$body = "";
$body = <<from = $email;
$mail->from_name = $firstname." ".$lastname;
$mail->to = "dave@4FitBodies.com";
$mail->subject = "Question/Comment for 4FitBodies.com";
$mail->body = $body;
$mail->send();
}
$confirm_message = "Your response was sent successfully";
?>
if ($oVDaemonStatus && $oVDaemonStatus->bValid && !$error) { ?>
Thank you for your inquiry today.
We will get back to your shortly.
Please click
here to return to main page. |
} else { ?>     Please leave contact info and message below.
    Fields with * are required.
} ?> |
|
|
|