designmantras
asked on
Mail format in php
sir i have using mail function,mail function do work properly but html tag not read and show the html code in mail please tell how this possible..........
.........PHP code
$name=$_POST["txt_name"];
$email=$_POST["txt_email"] ;
$mobile=$_POST["txt_contac tno"];
$feed_back=$_POST["txt_fee dback"];
$subject = "Dear Customer,";
$text3="With Best Wishes.";
$text4="http://www.insurancetimes.in";
$headers = "From:subscribe@insurancet imes.in" ."\r\n";
$message="<html>
<body>
<h2>Thank you for send feedback on InsuranceTimes.in</h2>
<p>Your Name:</p><br />".$name."
<p>Your Email:</p><br />".$email."
<p>Your Contact No.:</p><br />".$mobile."
<p>Your Feed Back:</p><br />".$feed_back."
<p>With Best Wishes.</p><br />
<p>http://www.insurancetimes.in</p>
</body>
</html>";
mail($email,$subject,$mess age,$heade rs);
echo "Your mail successfully.";
exit;
}
}
Mail OUTPUT:
<html>
<body>
<h2>Thank you for send feedback on InsuranceTimes.in</h2>
<p>Your Name:</p><br />MANOJ
<p>Your Email:</p><br />manojpandey1988@gmail.co m
<p>Your Contact No.:</p><br />9711350612
<p>Your Feed Back:</p><br />fine here!
<p>With Best Wishes.</p><br />
<p>http://www.insurancetimes.in</p>
</body>
</html>
.........PHP code
$name=$_POST["txt_name"];
$email=$_POST["txt_email"]
$mobile=$_POST["txt_contac
$feed_back=$_POST["txt_fee
$subject = "Dear Customer,";
$text3="With Best Wishes.";
$text4="http://www.insurancetimes.in";
$headers = "From:subscribe@insurancet
$message="<html>
<body>
<h2>Thank you for send feedback on InsuranceTimes.in</h2>
<p>Your Name:</p><br />".$name."
<p>Your Email:</p><br />".$email."
<p>Your Contact No.:</p><br />".$mobile."
<p>Your Feed Back:</p><br />".$feed_back."
<p>With Best Wishes.</p><br />
<p>http://www.insurancetimes.in</p>
</body>
</html>";
mail($email,$subject,$mess
echo "Your mail successfully.";
exit;
}
}
Mail OUTPUT:
<html>
<body>
<h2>Thank you for send feedback on InsuranceTimes.in</h2>
<p>Your Name:</p><br />MANOJ
<p>Your Email:</p><br />manojpandey1988@gmail.co
<p>Your Contact No.:</p><br />9711350612
<p>Your Feed Back:</p><br />fine here!
<p>With Best Wishes.</p><br />
<p>http://www.insurancetimes.in</p>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hahaa. I think that's pretty conclusive :)