session_start(); if(isset($_POST['submitted'])) { $name = trim($_POST['name']); $phone = trim($_POST['phone']); $email = trim($_POST['email']); $comment = trim($_POST['comment']); $emailTo = "info@mondoverdehair.com"; $subject = 'Contact message from '.$name; $body = "Name: $name \n\n Email: $email \n\n Phone: $phone \n\n Message: $comment"; $headers = 'From: $name <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email; @mail($emailTo, $subject, $body, $headers); $emailSent = true; }?>