here is an updated version of my code:
<?php
/* subject and email address */
$emailSubject = 'Request for email account';
$webMaster = '<email removed>';
/* gathering data variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$usernameField = $_POST['username'];
$reasonField = $_POST['reason']
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Username: $username <br>
Reason for request: $reason <br>
EOD;
$headers = "From: $email \r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align="left">Thank you for your interest! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
I removed the spaces and made sure they were gone.
I still get a Internal Server Error and after checking my logs it says😛remature end of script headers