![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/01/2013, 21:43
|
![Avatar de manuparquegiralda](http://static.forosdelweb.com/customavatars/avatar468379_1.gif) | | | Fecha de Ingreso: junio-2012 Ubicación: Barcelona
Mensajes: 241
Antigüedad: 12 años, 7 meses Puntos: 39 | |
Respuesta: Mandar un Mail con un HTML adentro Código PHP: $header = "MIME-Version: 1.0\n"; $header .= "Content-Type: text/html; charset=UTF-8\n"; $header .="From: [email protected]\n"; $mensaje = ' <head> <title>Hola que tal estás</title> </head> <body style="margin:0; padding:0; font-family:arial; font-size:12px; color:#666;"> <div style="position: relative; width:100%; height:100%; top:0px;"> </div> <div style="position: relative; width:100%; height:100%; top:0px;"> </div> <div style="position: relative; width:100%; height:100%; top:0px;"> </div> </body> '; mail("[email protected]","Email de prueba."","$mensaje","$header");
|