session_start(); if(isset($_POST['submitted'])) { $name = trim($_POST['name']); $comment = trim($_POST['email']); $comment = trim($_POST['comment']); $emailTo = "dpearson@arrowpneumatics.com"; $body = "Name: $name \n\n E-mail: $email \n\n Message: $comment"; $headers = 'From: '. $name . "\r\n" ; @mail($emailTo, $subject, $body, $headers); $emailSent = true; }?>