\n"; if (is_array($_POST)) { while (list($key, $val) = each($_POST)) if (!eregi($key, "dir_email_para")) if (!eregi($key, "dir_email_de")) if (!eregi($key, "mail_subject")) if (!eregi($key, "url_gracias")) if (!eregi($key, "submit")) { $cont .= '' . strtoupper(str_replace("_", " ", $key)) . ': ' . $val . "\n"; } } $cont .= "\n"; mail($_POST["dir_email_para"], $_POST["mail_subject"],$cont,"From:$dir_email_de\nReturn-Path:$returnPath\nContent-Type: text/html;\n"); /* //// debug echo $dir_email_para; echo "
".$mail_subject; echo "
".$dir_email_de; echo "
".$url_gracias; echo "
".$cont; exit; */ if ($_POST["url_gracias"]) { header("Location: ". $_POST["url_gracias"]); exit; } ?>