Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/10/2009, 10:42
ClemenT
 
Fecha de Ingreso: octubre-2007
Mensajes: 9
Antigüedad: 16 años, 6 meses
Puntos: 0
Problema en Formulario que envia email

Hola !

Tengo implementado un formulario en mi web, el tipico formulario de contacto... el caso es que mientras lo probaba y dirigia los correos a mi cuenta gmail todo parecia correcto, el fallo que me aparece es al leer los correos con un script de esos para webmail el horde. Junto a la dirección del remitente me añade esta otra MISSING_MAILBOX_TERMINATOR[arroba].SYNTAX-ERROR, a que se debe este fallo ? aparentemente todo funciona correctamente pero esto me hace sospechar que pueda fallar en cualquier momento, pego el código a ver si alguien puede ver algo raro.

Gracias !!

Código PHP:
<?php

// load the variables form address bar
$subject $_REQUEST["subject"];
$message $_REQUEST["message"];
$from $_REQUEST["from"];
$verif_box $_REQUEST["verif_box"];
$name $_REQUEST["name"];

// remove the backslashes that normally appears when entering " or '
$message stripslashes($message); 
$subject stripslashes($subject); 
$from stripslashes($from); 
$name stripslashes($name); 

// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
    
// if verification code was correct send the message and show this page
    
mail("mi email"'Formulario Web: '.$subject$_SERVER['REMOTE_ADDR']."\n\n".$message"From: $name <$from");
    
// delete the cookie so it cannot sent again by refreshing this page
    
setcookie('tntcon','');
} else {
    
// if verification code was incorrect then return to contact page and show error
    
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
    exit;
}
?>