navin_bvr Posted August 11, 2008 Share Posted August 11, 2008 I have a problem here, when i send any mails from feedback form its showing sent but i canot receive it in mail, can anyone help me out of it? SCRIPT: <? $to = '[email protected]'; $subject = 'SUBJECT GOES HERE... : Online Request Form '; $SubDate = date("d/m/Y"); $space = " , "; $message = ' <table border=1 width=100% align=center> <tr> <td colspan=2 bgcolor=f2f2f2><b>Applicant Details</b></td> </tr> <tr> <td>Property Category:</td><td> '.$property_category.'</td> </tr> <tr> <td>Property Description:</td><td> '.$property_description.'</td> </tr> <tr> <td>Property Status :</td><td> '.$property_status.'</td> </tr> <tr> <td>Facilities :</td><td> '.$facilities.'</td> </tr> <tr> <td>Area:</td><td> '.$area1.'</td> </tr> <tr> <td>No Of Bedrooms:</td><td> '.$nbr1.'</td> </tr> <tr> <td>Max budget :</td><td> '.$maxbudget.'</td> </tr> <tr> <td>Square Meter :</td><td> '.$sq_mt.'</td> </tr> <tr> <td>Square Foot :</td><td> '.$sq_ft.'</td> </tr> <tr> <td>Date of Tenancy :</td><td> '.$tenancydate.'</td> </tr> <tr> <td>Email :</td><td> <a href=mailto:'.$email.'>'.$email.'</a></td> </tr> <tr> <td>Name :</td><td> '.$name.'</td> </tr> <tr> <td>Company :</td><td> '.$company.'</td> </tr> <tr> <td>Contact No:</td><td> '.$contact_no.'</td> </tr> <tr> <td>Fax :</td><td> '.$fax.'</td> </tr> <tr> <td>Comments :</td><td> '.$comments.'</td> </tr> </table> '; //echo $message; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$Email.'' . "\r\n"; mail($to, $subject, $message, $headers); ?> <SCRIPT LANGUAGE="JavaScript"> <!-- alert("Thank you! your form have been submitted!!!") document.location.href="index.html"; //--> </SCRIPT> Link to comment https://forums.phpfreaks.com/topic/119176-php-contact-form-not-working/ Share on other sites More sharing options...
revraz Posted August 11, 2008 Share Posted August 11, 2008 Check your server log for mail errors. This can be for various reasons. Also, it's possible your mail host is marking it as spam as well. Link to comment https://forums.phpfreaks.com/topic/119176-php-contact-form-not-working/#findComment-613816 Share on other sites More sharing options...
vicodin Posted August 11, 2008 Share Posted August 11, 2008 If you get no errors (make sure you have E_ALL as your error setting) then as far as php is concerned it was sent. The other areas which could be your issue is your SMTP server, ISP, and getting caught in spam filters... Im sure theres more indepth issues that could happen but check all those first. Link to comment https://forums.phpfreaks.com/topic/119176-php-contact-form-not-working/#findComment-613865 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.