Código PHP:
<?
if($_POST['asunto']!=""){
if($_POST['contenido']!=""){
if($_POST['email']!=""){
ob_start();
?>
<?=nl2br($_POST[contenido]);?>
<?
$resumen = ob_get_contents();
$mail = "no-reply@".$_SERVER['SERVER_NAME']."";
$destino=$_POST["email"];
$sheader = "From: ".$mail."\r\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
$asunto=$_POST['asunto'];
mail($destino,$asunto,$resumen,$sheader);
}
}
}