session_start(); if(isset($_POST['submitted'])) { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $comment = trim($_POST['comment']); $emailTo = "lepps@gapovermd.org"; $subject = 'Contact message from '.$name; $body = "Name: $name \n\n Email: $email \n\n Phone: $phone \n\n Message: $comment"; $headers = 'From: '. $name . "\r\n" ; @mail($emailTo, $subject, $body, $headers); $emailSent = true; }?>
Please contact us if you have any questions or comments.