Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/01/2013, 21:43
Avatar de manuparquegiralda
manuparquegiralda
 
Fecha de Ingreso: junio-2012
Ubicación: Barcelona
Mensajes: 241
Antigüedad: 11 años, 10 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");