Tema: formato HTML
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/10/2007, 09:26
Avatar de DragonX
DragonX
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 22 años
Puntos: 177
formato HTML

Hola amigosd, como les va? Estoy armando un "recomendar a un amigo" y gracias a Dios todo anda bien, el mail llega sin problemas....pero si existe y un problema, el mail que me llega es texto plano, no me reconoce el HTML.

Este es el código:

Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>
<?php

$user 
'[email protected]';
$pass 'xxxxxxxxxx';


$urlget $_GET['url'];
$url $_POST['url'];
$de $_POST['remitente'];
$para      $_POST['para'];
$asunto    $_POST['asunto'];
$mensaje   $de " te envio este link <br /><br /> <a href=\"$url\">Link</a>";

$cabeceras $mail->make_header(    $de$para,    $asunto3$de"");
$cabeceras .= 'MIME-Version: 1.0' "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' "\r\n"

if(
$para != ""){
  
  
// Se incluye la librería necesaria para el envio
    
require_once("fzo.mail.php");
    
  
$mail = new SMTP("localhost"$user$pass);
    
  
// Se envia el correo y se verifica el error
  
$error $mail->smtp_send($de$para$cabeceras$mensaje$de"");
  
  if (
$error == "0"){
    echo 
"Mail enviado con exito!<br /><br />" $mensaje "<br />";
  }else{
    echo 
$error;
  }
  
}
?> 

<form action="enviamail.php" name="formulario" id="formulario" method="post">
  <input type="hidden" name="url" value="<?php echo $urlget ?>">
  Para <input type="text" name="para" id="para"><br />
  Remitente <input type="text" name="remitente" id="remitente"><br />
  Asunto <input type="text" name="asunto" id="asunto"><br />
  <input type="submit" name="Enviar">
</form>


  </body>
</html>
Aparentemente el problema estaría aca:

Código PHP:
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' "\r\n"
pero no se donde... si alguien me pudiera da runa manito le agradeceria infinitamente.


DX
__________________
Desarrollos dosLotos
Calendario Maya, Meditación, Osho