Ich hätte esd ann jetzt so:
Code:
$headers = "MIME-Version: 1.0\n".
"Content-Type: text/plain; charset=iso-8859-1\n".
"From: \"".$_POST['yourname']."\" <".$_POST['from'].">\n".
"To: ".TO." <".TO.">\n".
"Date: ".date("r")."\n";
$subject = preg_replace('#[^a-zA-Z0-9 ]#i', '', $_POST['subject']);
$msg = "Name : ".$_POST['yourname']."\n".
"E-Mail : ".$_POST['from']."\n".
"Betreff : ".$subject."\n\n".$text;
$msg = stripslashes($msg);