Este es todo el código de envío:
<?php
require_once('recaptchalib.php');
$privatekey = "6LeoucESAAAAAG8qzA3O6l92LmRIhPXlPpKO5Ku6";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The words you entered did not match the challenge words. Please go back and try again. " .
"(Error response: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo .= "NOMBRE: " . $_POST["nombre"] . "\n";
$cuerpo .= "EMAIL: " . $_POST["email"] . "\n";
$cuerpo .= "IP: " . $_SERVER['REMOTE_ADDR']. "\n";
$cuerpo .= "IP-2: " . $_SERVER['HTTP_X_FORWARDED_FOR']. "\n";
$cuerpo .= " " . $_POST[" "] . "\n";
$cuerpo .= "MENSAJE: " . $_POST[" "] . "\n";
$cuerpo .= " " . $_POST[" "] . "\n";
$cuerpo .= " " . $_POST["mensaje"] . "\n";
//mando el correo...
mail("
[email protected]", "Information", $cuerpo, $Reply: $_POST['email']);
header("Location: http://www.misitio.com/thank_you.html");
}
?>
$_POST['email'] de esta manera con una comilla no me lo acepta el DW