Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/01/2007, 23:51
Avatar de alepsis
alepsis
 
Fecha de Ingreso: enero-2002
Ubicación: CHILE
Mensajes: 117
Antigüedad: 23 años, 3 meses
Puntos: 0
a modificar formulario

Hola amigos:

tengo un formulario que me funciona perfectamente sólo hay un problema cuando me llega la información al correo recipiente me llega como código html

como deberia quedar el código para que me llegue como texto normal?

este es el código
Código PHP:
<?php

$MailToAddress 
"[email protected]"// your email address
$redirectURL "http://www.formulario.com/gracias.htm"// the URL of the thank you page.

# optional settings
$MailSubject "[Datos desde formulario]"// the subject of the email

$w4fMessage "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title>$MailSubject</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body>";
    if (
is_array($HTTP_GET_VARS)) {
    
reset($HTTP_GET_VARS);
    while(list(
$key$val) = each($HTTP_GET_VARS)) {
        
$GLOBALS[$key] = $val;
        if (
is_array($val)) { 
            
$w4fMessage .= "<b>$key:</b> ";
            foreach (
$val as $vala) { 
                
$vala =stripslashes($vala);
                
$w4fMessage .= "$vala, ";
            } 
            
$w4fMessage .= "<br>";
        }     
        else {
            
$val stripslashes($val);
            if ((
$key == "Submit") || ($key == "submit")) { }     
            else {     if (
$val == "") { $w4fMessage .= "$key: - <br>"; }
                    else { 
$w4fMessage .= "<b>$key:</b> $val<br>"; }
            }
        }
    } 
// end while
    
}//end if
    
else {
    
reset($HTTP_POST_VARS);
    while(list(
$key$val) = each($HTTP_POST_VARS)) {
        
$GLOBALS[$key] = $val;
        if (
is_array($val)) { 
            
$w4fMessage .= "<b>$key:</b> ";
            foreach (
$val as $vala) { 
                
$vala =stripslashes($vala);
                
$w4fMessage .= "$vala, ";
            } 
            
$w4fMessage .= "<br>";
        }     
        else {
            
$val stripslashes($val);
            if ((
$key == "Submit") || ($key == "submit")) { }     
            else {     if (
$val == "") { $w4fMessage .= "$key: - <br>"; }
                    else { 
$w4fMessage .= "<b>$key:</b> $val<br>"; }
            }
        }
    } 
// end while
    
}//end else
$w4fMessage "<font face=verdana size=2>".$w4fMessage."</font></body></html>";
 
"From: $name <$email>\r\nReply-To: $name <$email>\r\nX-Mailer: PHP/" phpversion()."\r\nX-MimeOLE: \r\nBCc: $MailToCC\r\nContent-type:text/html; charset=iso-8859-1\r\n";
header("Location: ".$redirectURL);
?>
gracias
__________________
Atte Alepsis_Chile
-----------------------------------
www.big-bang.cl/foros