Mmmm... I have the site owner testing this for me too...
and the debug output from my code is....
Subject: Crimes Act Section 59 Law Change Recaptcha Private Key: --our private key ------ Response is really, really valid! GREAT! Response: manual_challenge 02goQbzgajPS7NKQJV8MNW8VKyFxLBHWwf78xC828ZLgvLJirrb1j9LSnhYlnzSYyw2feqWzCBdoPLBBKwsYzy6PSRV61QPAn5Oui7XE1-_CQMogL__vLu76FP3ZHmMZ5mLMDTVFU1MeMKUquA3dPFDh2vGkMatEtkM8M31FbV-gKgGvQQOmrxWe_VIshDUgj26Pj9Hq1ljEEFNO7iu79yLHHaMryrYspOsXoMJxvHul-AFj78hvEpxKsHN7vdmQFjFbDB1mXFPk4qCUMQc2bFDi6T8aAB
Which is strange because when I do it... all I get is....
Subject: Crimes Act Section 59 Law Change Recaptcha Private Key: --- our private key ----- Response is really, really valid! GREAT! asdf asfd asd manual_challenge
the code that generates the debug...
//build a list of values for debug and mail them ... added by paulhomebus
$arr2 = 'Subject: ' . $subject . ' Recaptcha Private Key: ' . $privatekey . ' Response: ' . $_POST["recaptcha_response_field"];
$out10 = $arr2 . $arr1;
//$out9 = $out10; // var_export($out10,$out11);
mail('[email protected]','testing modx mailing form', $out10); //debug report
if(!$mail->send()) return 'Main mail: ' . $_lang['ef_mail_error'] . $mail->ErrorInfo;
}
Which is generated here....
if (!$resp->is_valid){
$arr1 = 'Response was not valid!' . ' ' . 'OH DEAR!' . ' ' . $_POST['recaptcha_challenge_field'] . ' ' . $newremoteip;
# set the error code so that we can display it. You could also use
# die ("reCAPTCHA failed"), but using the error message is
# more user friendly
// $vMsg[count($vMsg)]= "reCAPTCHA said: " . $resp->error .
// " -- Please re-select the recipients you wish to send to!"; // This died!
}
// $resp = null;
$arr1 = 'Response is really, really valid!' . ' ' . 'GREAT!' . ' ' . $_POST['recaptcha_challenge_field'] . ' ' . $_POST["recaptcha_response_field"]; // $error = null;
}
P.S. I am thinking I ought to be testing under different conditions... so I will conduct some more tests under Win XP...
Thanks mconsidine for all your help! I hope someone else can chime in... I am at dead-end!