Tema: enviar email
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2003, 09:52
Avatar de j-diego
j-diego
 
Fecha de Ingreso: diciembre-2002
Ubicación: Cochabamba
Mensajes: 63
Antigüedad: 21 años, 4 meses
Puntos: 0
enviar email

como puedo enviar en email i¿on contenido html pero que los pe ro dentro del mensaje .

<?
$subject = "El asunto aquí";
$mensage = '
<html>
<head>
<title>Titulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<BODY text=#000000 vLink=#000000 aLink=#000000 link=#0 bgColor=#303468
leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
.
.
.
(aqui una variable php )

.
// Y todo el código HTML de la página que queres enviar
';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: NOMBRE RTE <[email protected]>\r\n";

mail("[email protected]",$subjet,$mensaje ,$headers);

?>
por favor es urgente
__________________
Gracias.