PHP Strip_tags() and Mail()



K, here's my problem... when I send mail through a send mail form on my web site i get this in my mail box (Outlook express)

<p align=\"left\"><font face=\"Courier New_12pt_st\" size=\"12\" color=\"#673434\">» ärende «</font></p>

How do I remove all the obviously annoying ("<p align=" and so on) text??

Here is the PHP


$send = "me@mine.com";
$subject = "Mail To";

$headers = "From: " . $_POST["namn"];

$headers .= "<" . $_POST["mail"] .">\r\n";

$headers .= "Reply-To: " . $_POST["mail"];

$message = stripslashes("$meddelande");
$message = $_POST["meddelande"];

mail($send, $subject, $message, $headers);


you mean to remove all the html tags?

simple..

$message = striptags(stripslashes("$meddelande"));

If you want to eliminate html tags from a message, thats when you use strip_tags(...).

I didn't understand your question actually. Paste your code, maybe i'll be able to help you better.

Check out this tool: http://www.zubrag.com/tools/html-tags-stripper.php