php mail script working but nothing in my inbox or spam box

Am I overlooking something here?.. The script returns no errors when I hit submit but I never get anything to my inbox or spam box…

[code]

Name(required)


E-mail(required)


Phone


Message(required)


[/code]

[php]<?php $name = $_POST[‘namet’];

$email = $_POST[‘mailt’];

$phone = $_POST[‘phone’];

$formcontent=“From: $name \n Message: $phone”;

$recipient = “This is where my email goes…obviously”;

$subject = “Contact Form”;

$mailheader = “From: $email \r\n”;

mail($recipient, $subject, $formcontent, $mailheader) or die(“Error!”);

echo “Thank You!”;

?>
[/php]

Please and thank you

Unfortunately you have overlooked something in your HTML
You need to give the assign the inputs using the name="" attribute, it looks like you tried using the id="" attr. instead. Fix that and let me know if you still don’t receive the email.

Sponsor our Newsletter | Privacy Policy | Terms of Service