"; //echo"{$_SERVER['REMOTE_ADDR']}
"; $email_to=$_POST['email_to']; $email_from=$_POST['email_from']; $email_subject=$_POST['email_subject']; $email_body=$_POST['email_body']; echo <<

Support Request

HTML; if($_POST["recaptcha_response_field"]) { $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if($email_to && $resp->is_valid) { if(!$email_subject) $email_subject='Support Request'; echo <<Mailing...
  • To... {$email_to}
  • From... {$email_from}
  • Subject... {$email_subject}
  • Message...
    {$email_body}
HTML; mail($email_to,$email_subject,$email_body,"Sent-By: APCNZ Webspace Support Request Form\r\n" . "From: {$email_from}\r\n" . "IP: {$_SERVER['REMOTE_ADDR']}\r\n","-f{$email_from}\r\n"); } else { # set the error code so that we can display it $error = $resp->error; } } if(!($_POST["recaptcha_response_field"] && $email_to && $resp->is_valid)) { echo <<

From
Subject
Message
Security Code   HTML; echo recaptcha_get_html($publickey, $error); echo <<
$emessage


[ Go Back ] HTML; } ?>