Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php code problem
06-01-2008, 12:28 PM
Post: #1
php code problem
hi all..
i created a feedback php...the code is as shown below..
the prblm is that the mail comes in a single '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

{//get data nedeed !
$subject = "Feedback from";
$name = $_POST['name'];
$name = $_POST['name'];
$emailid = $_POST['emailid'];
$phone = $_POST['phone'];
$message="Name :".$name."\n\r"."EMail :".$emailid."\n\r"."Phone :".$phone."\n\r"."comments :".$comments;

//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!!";
{$MSG="Sending Failed!!";}

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)