Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/01/2004, 07:24
Avatar de giotari
giotari
Usuario no validado
 
Fecha de Ingreso: mayo-2003
Ubicación: Chile
Mensajes: 295
Antigüedad: 20 años, 11 meses
Puntos: 0
Pregunta enviar mail html

tengo este script para enviar un mail en html pero no entiendo como inserto el html, se supone que en el $shtml pero deberia insertar el codigo html desde el <html><head> hasta el </html></head> o me equivoco,

este es el script:

$sfrom=$_POST['mail']; //cuenta que envia

$sdestinatario="[email protected]"; //cuenta destino

$ssubject="asunto asunto asunto"; //subject

$shtml=""; //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);


espero me puedan ayudar.

Última edición por giotari; 21/02/2008 a las 00:08