|
php code problem
|
|
06-01-2008, 12:28 PM
Post: #1
|
|||
|
|||
|
php code problem
hi all..
i created a feedback page..in php...the code is as shown below.. the prblm is that the mail comes in a single line..in 'outlook' i tested in gmail, webmail its self... its working properly...the prblem only with outlook wats the solution for get the contents in step by step.. the code is if(isset($_POST['Submit'])) {//get data nedeed ! $subject = "Feedback from http://www.alubond.com"; $name = $_POST['name']; $name = $_POST['name']; $emailid = $_POST['emailid']; $phone = $_POST['phone']; $comments=$_POST['comments']; $message="Name :".$name."\n\r"."EMail :".$emailid."\n\r"."Phone :".$phone."\n\r"."comments :".$comments; $to="sales@alubond.com"; //replace \n with $headers = "From: ".$emailid."\r\n"; $headers .= "Reply-To: ".$emailid."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //send the mail if(mail($to, $subject, $message,$headers)) { $MSG="Message has been Sent!!"; } else {$MSG="Sending Failed!!";} } ?> |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)





