I've got a dead.letter string appearing again whenever I submit an email form from my website.
Nothing seems out of place in my html or php code.
<form action="process.php" method="post">
<span class="formfield">Your Name:<br />
<input name="name" type="text" class="fielda">
</span>
<br />
<span class="formfield">Email:<br />
<input name="email" type="text" class="fielda">
</span>
<br />
<p class="smalltextc">Message</p>
<textarea name="message" cols="42" rows="12"></textarea>
<br />
<input type="SUBMIT" name="submit">
</form>
<?php
$to = "desk@claytonbellmor.com";
$subject = "Message";
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers, $name);
if($sent)
{
print ("<img src=\"../imgs/thanks.png\" alt=\"Thank you\" class=\"imgb\"/><br /><div class=\"smalltextb\">Your email was sent successfully.</div>");
}
else
{
print ("<img src=\"../imgs/oops.png\" alt=\"Thank you\" class=\"imgb\"/><br /><div class=\"smalltextb\">There was a problem sending your quote. <br> Please hit the back button on your browser to re-send the form. <br>If the problem persists, please email me at desk@claytonbellmor.com</div>");
}
?>
Is there something that I need to change in my php configuration file? Or is it simply something on my end? I really dislike how unprofessional it looks whenever someone submits an email.
Any help would be tremendous, because I don't think I can figure this out on my own. Thanks!