Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/03/2004, 14:12
j_aspillaga
 
Fecha de Ingreso: septiembre-2003
Mensajes: 248
Antigüedad: 20 años, 7 meses
Puntos: 2
Hola, tengo esta funcio q me trabaja ok,
<?php
function envia($destino,$asunto,$contenido)
{
$origen="[email protected]";
$hdr="MIME-Version: 1.0\n";
$hdr.="Content-type: text/html; charset=iso-8859-1\n";
$hdr.="X-MSMail-Priority: High\n";
$hdr.="From: \"tunombre\" <".$origen.">\n";
$bod="<html>\n<body bgColor='#E0ECF8'>\n";
$bod.=nl2br($contenido);
$bod.="</body>\n</html>\n";
$email=$destino;
$ret=@mail($destino,$asunto,$bod,$hdr);
return $ret;
}
?>
el $destino es el correo al q quieres enviar
$asunto: es el titulo del mensaje
$contenido: cuerpo del mensaje, acepta codigo html aunq no me ha servido con imagenes, si lo haces me avisas :)
suerte y saludos
__________________
Jose A