Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/10/2005, 08:48
Avatar de yuguilley
yuguilley
 
Fecha de Ingreso: febrero-2004
Ubicación: Montenegro Quindío
Mensajes: 108
Antigüedad: 20 años, 2 meses
Puntos: 0
Prueba este

<?
/*

*/
// ------------- CONFIGURABLE SECTION ------------------------
$mailto = '[email protected]' ;
$subject = "Comentario desde www.querencias.com.ve" ;
$formurl = "http://www.querencias.com.ve/consultas.htm" ;
//$errorurl = "http://www.amargarita.com/error.htm" ;
$thankyouurl = "http://www.querencias.com.ve/agradecemos.htm" ;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $_POST['name'] ;
$email = $_POST['email'] ;
$comments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
header( "Location: $errorurl" );
exit ;
}
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper =
"Este es un comentario enviado desde:\n" .
"$http_referrer\n" .
"------------------------- CONTENIDO -------------------------\n\n" .
"NOMBRE: \n\n" .
$name . "\n\n" .
"MAIL: \n\n" .
$email . "\n\n" .
"COMENTARIO: \n\n" .
$comments . "\n\n" .
"\n\n------------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.02" );
header ("location: $thankyouurl");
?>