Este es el codigo que utilizo como cuerpo del mensaje
Código:
Y este es el codigo php q manda el mail<!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> <title> [ SISTEMA DE RECUPERACION DE CONTRASEÑAS ] </title> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <style type='text/css' media='all'> @import url(http://miservidor.com/css/estilos.css); </style> </head> <body> <div id='superior'> <div class='menu' id='menu'>[ SISTEMA DE RECUPERACION DE CONTRASEÑAS ]</div> </div> <div id='main'> <table width='60%' border='0' align='center' cellpadding='0' cellspacing='0'> <tr> <td width='36%'>Su nombre de usuario actual es:$nombre</td> </tr> <tr> <td>Para modificar su contraseña pulse<a href='http://miserver.com/code.php?code=$codigorecuperacion'>aqui</a>.<br>Sera enviado a nuestra web donde podra modificar su contraseña.</td> </tr> <tr> <td> </td> </tr> </table> </div> </body></html>
Código PHP:
<? $email = $mail;
$asunto = 'Sistema de recuperación de contraseñas.';
$header = "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
mail($email,$asunto,utf8_decode($mensaje),$header);?>
Muchas Gracias