Código PHP:
Ver original<?php
$query_mail = "SELECT * FROM prueba_email";
$mail=$row['email'];
$asunto=$_POST['asunto'];
$texto=$_POST['mensaje'];
$sdestinatario="$mail"; //cuenta destino
$ssubject="prueba"; //subject
$shtml='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
</head>
<body>
</body>
</html>'; //mensaje
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n"; $sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail($sdestinatario,$ssubject,$shtml,$sheader);
}
?>