<?php if (isset($_POST['submit'])) { //if "email" is filled out, proceed $name= mysql_real_escape_string($_POST['name']); $phone= mysql_real_escape_string($_POST['phone']); $to = "[email protected]"; $subject = "Customer Intrested"; $message = "Buyer Information and Intrested in land."; $message.= "Customer Name :".$name."\n"; $message.= "Customer Phone :".$phone."\n"; $mail=mail($to, "Subject: $subject",$message ); if($mail){ echo "success"; } else { echo "failed."; } ?> I am using the above code to send email..but i am unable to get the result..it always showing the "Thank you message"..
I can able to get the values of name and phone.
How to fix this Problem?