Hi sir,
I Have created a feedback page in php.Its all working properly.but the problem is that, when any one give the feedback it stores in database, but a mail is not sent to owner...is that i have to configure in phpmailer function in server.. the code is
The link of the site page is http://www.eitech.in/prj_feedback.php
I Have created a feedback page in php.Its all working properly.but the problem is that, when any one give the feedback it stores in database, but a mail is not sent to owner...is that i have to configure in phpmailer function in server.. the code is
Code:
$mail_date = date("d-m-Y");
//$to = "info@eitech.in";
$to = "user@example.com";
$subject = "Feedback posted in www.eitech.in dated".$mail_date;
$message = "Name : ".$Name."<br/>"."Address: ".$Address."<br/>"."Email : ".$Email."<br/>"."Fax: ".$Fax."<br/>"."Message :".$Message."<br/>";
$from = $Email;
$headers = "From: .$from";
mail($to,$subject,$message,$headers);
echo "<br/><center><style='font-size:1.2em;color:#0557A9;'>Thank You For Sending The Feedback To Us,<br/>We Will Get Back To You With A solution To Your Query.</center><br/>";
Comment