Hazır Script Bulup Classlarını Temizledim Fakat Bu Seferde Recaptcha istiyor php bilen arkadaşlar yardımcı olabilrimi recaptchayı kaldırmak istiyorum
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'config/connect.php';
require "vendor/autoload.php";
$secret = $secret_key;
$sitekey = $site_key;
$captcha = new \Anhskohbo\NoCaptcha\NoCaptcha($secret, $sitekey);
require 'PHPMailer/Exception.php';
require 'PHPMailer/PHPMailer.php';
require 'PHPMailer/SMTP.php';
$send_msg = "";
if(isset($_POST['send'])) {
if($captcha->verifyResponse($_POST['g-recaptcha-response'])) {
$email = $_POST['email'];
$name = $_POST['name'];
$subject = $_POST['subject'];
$type = $_POST['type'];
$body = $_POST['message'];
if(isset($_FILES['file']['name']) && $_FILES['file']['name'] != "") {
$file = 'attach/' . basename($_FILES['file']['name']);
move_uploaded_file($_FILES['file']['tmp_name'], $file);
} else {
$file = "";
}
$mail = new PHPMailer();
$mail->isSMTP();
$mail->Host = $smtp_host;
$mail->SMTPAuth = true;
$mail->Username = $smtp_user;
$mail->Password = $smtp_pass;
$mail->SMTPSecure = 'tls';
$mail->Port = $smtp_port;
//sender from
$mail->setFrom($email, $name);
$mail->addAddress($myemail);
$mail->addReplyTo($email, 'Information');
if(isset($_POST['copy'])) {
$mail->addCC($email);
}
$mail->addAttachment($file);
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $body;
if($mail->send()) {
$send_msg = '<div align="center" class="alert alert-success">Message has been sent</div>';
}
else {
$send_msg = '<div align="center" class="alert alert-danger">Message could not be sent. Mailer Error: ' . $mail->ErrorInfo . '</div>';
}
if(isset($_FILES['file']['name']) && $_FILES['file']['name'] != "") {
unlink($file);
}
} else {
$send_msg = "Please verify you not a Robot";
}
}
?>