<?php
/ These are the variable that tell the subject of the email and where the email will be sent./
////////////$emailSubject = 'Customer Has a Question!';
//////////$emailSubject = "BLL Score - " . $nameField . ": " . $emailField;
///////////$emailSubject = "BLL Score - . $nameField;"
$emailSubject = "BLL Score - " . $nameField . ": " . $nameField . " (" . $emailField . ")";
$mailto = 'TEST@email.com';
/ These will gather what the user has typed into the fieled. /
$nameField = $POST['name'];
$emailField = $POST['email'];
$questionField = $_POST['question'];
/* TEST CODE FOR GODADDY
$body = <<<EOD
<br><hr><br>
Name: $nameField <br>
Email: $emailField <br>
Question: $questionField<br>
EOD;
$headers = "From: $emailField\r\n"; // This takes the email and displays it as who this email is from.
$headers .= "Content-type: text/html\r\n"; // This tells the server to turn the coding into the text.
$success = mail($mailto, $emailSubject, $body, $headers); // This tells the server what to send.
?>