Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/11/2005, 09:19
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
borraste un < que no debías, y no borraste los tabs que dije =P
probá con esto...
Código PHP:
$sfrom="[email protected]"//cuenta que envia
        //$sdestinatario=""; //cuenta destino
        
$ssubject="Nuevo Password ";
        
//Aqui en dodne deseo colocar mi mensaje en html
        
$shtml= <<<HTML
<html>
<head>
</head>
<body>
<table width=300 border=1>
<tr>
<td>HOLA </td>
</tr>
<tr>
<td>su nuevo password es: $contrasena  </td>
</tr>
<tr>
<td>Gracias</td>
</tr>
</table>
</body>
</html>
HTML;
        
$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);  //ejemplo de demo
        
mail($_POST['email'],$ssubject,$shtml,$sheader); // esta es la linea 67