//	for reCAPTCHA v3 start
	$recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify';
	$recaptcha_secret = '6LfTJDUlAAAAAKDuSjyTMqT8KiUrMyml1Ury2C8v';
	$recaptcha_response = $_POST['g-recaptcha-response'];
	$curlx = curl_init();
	curl_setopt($curlx, CURLOPT_URL, $recaptcha_url);
	curl_setopt($curlx, CURLOPT_HEADER, 0);
	curl_setopt($curlx, CURLOPT_RETURNTRANSFER, 1); 
	curl_setopt($curlx, CURLOPT_POST, 1);
	$post_data = array(
		'secret' => $recaptcha_secret, //<--- your reCaptcha secret key
		'response' => $recaptcha_response
	);
	curl_setopt($curlx, CURLOPT_POSTFIELDS, $post_data);
	$resp = json_decode(curl_exec($curlx));
	curl_close($curlx);
//	for reCAPTCHA v3 end
if ($resp->success&&$resp->score>0.8){
	## request
	extract($_REQUEST);
	
		$to = get_cfg('company_email');
		$from = $email;
		$subject = "CHAT CHAT Anywhere Member Card Registration";
		
	if ($email!=""){
		
		$headers = "From: ".strip_tags($from)."\r\n";
		$headers .= "Reply-To: ".strip_tags($from)."\r\n";
		$headers .= "MIME-Version: 1.0\r\n";
		$headers .= "Content-Type: text/html; charset=utf-8\r\n";
		$r='';
		foreach($_REQUEST as $k=>$g){$r .= $k."=".$g.",
";}		
		
		$mail_template_content = '	
		
			Client information are as follow:
			=========================================
			Name : '.$name.' 
			E-mail : '.$email.'
			Phone Number : '.$phone_1.'
			Address : '.$enquiry.'
			=========================================
			
			Date:'.date("Y-m-d",time()).'
		
Thank you for your registration.
We shall mail you a "CHAT CHAT Anywhere" member card within 3 working days.
Upon receipt of the member card, just bring the card to any 7-ELEVEN to recharge HK$100 within 7 days, you can get extra HK$20 value.
For any enquiries, please call our customer service hotline 8106 1649.