hello all peoples, please check attachment here i am using email.php and when i am fill up the form and sent the message from my website he saying thanks for sending your message sent but when i check my email no any message received, i have godaddy hosting with domain so where is the problem please check attachment and please provide me solution if anyone have another html and email.php code so please send or tell me the solution, thanks.
You are using the sendmail (mail()) function with Godaddy. Personally, I wouldn't use Godaddy for anything else than domain registration, however, if you insist, you can use smtp instead of the sendmail. It seems you are not the only person with the issue: http://stackoverflow.com/questions/15252471/php-mail-not-working-on-godaddy
I used this simple contact form in the past, worked just fine. Just one small file: <?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> Your name:<br> <input name="name" type="text" value="" size="30"/><br> Your email:<br> <input name="email" type="text" value="" size="30"/><br> Your message:<br> <textarea name="message" rows="7" cols="30"></textarea><br> <input type="submit" value="Send email"/> </form> <?php } else /* send the submitted data */ { $name=$_REQUEST['name']; $email=$_REQUEST['email']; $message=$_REQUEST['message']; if (($name=="")||($email=="")||($message=="")) { echo "All fields are required, please fill <a href=\"\">the form</a> again."; } else{ $from="From: $name<$email>\r\nReturn-path: $email"; $subject="Message sent using your contact form"; mail("youremail@yoursite.com", $subject, $message, $from); echo "Email sent!"; } } ?> Code (markup): Make sure you change to your own.