| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/binal/ |
Upload File : |
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'PHPMailer/src/Exception.php';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
$emailTo = 'info@asrecruitement.com';
$name = $_POST["name"];
$email = $_POST["email"];
$message = $_POST["message"];
$reCaptchaResponse = $_POST["g-recaptcha-response"];
$captchaResponse = getGoogleRecaptchResponse($reCaptchaResponse);
if($captchaResponse->success){
$subject = "Inquiry from verbix.ai";
$body = "Hello,\r\n\r\n".$message;
$result = sendEmail($subject, $body, 'info@verbix.ai', 'Verbix');
$replySubject = 'Thank You for Your Inquiry on verbix.ai';
$replyBody = "Dear ".$name.",\r\n\r\nThank you for reaching out to us regarding your interest in Verbix AI tools. We appreciate the time you took to submit your inquiry.\r\n\r\nOur team is dedicated to providing you with the best solutions tailored to your needs. We will review your request and get back to you shortly with more information and next steps.\r\n\r\nIf you have any additional questions in the meantime, please don't hesitate to reach out.\r\n\r\nBest regards,\r\nUrvi,\r\nCustomer Success Manager\r\nverbix.ai";
$sendMailResult = sendEmail($replySubject, $replyBody, $email, $name);
if ($result && $sendMailResult) {
echo 1;
} else {
echo "Mailer Error: " . $mail->ErrorInfo;
}//end of else
}else{
echo 0;
}//end of else
//Get Google Recaptch validate Response
function getGoogleRecaptchResponse($reCaptchaResponse){
// Google secret API
$secretAPIkey = '6LeV-nwpAAAAACmFD-q1G4bF7jWM5DhsCbI0dcLk';
// reCAPTCHA response verification
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secretAPIkey.'&response='.$reCaptchaResponse);
// Decode JSON data
$response = json_decode($verifyResponse);
return $response;
}//end of function
//Send Email
function sendEmail($subject, $body, $emailTo, $emailToName) {
$smtpUsername = 'info@verbix.ai'; // Replace with your Gmail email address
$smtpPassword = '9qAwpfHQfK'; // Replace with your Gmail password
$emailFrom = 'info@verbix.ai';
$emailFromName = 'Verbix AI';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = "host2124.hostmonster.com";
$mail->Port = 465;
$mail->SMTPSecure = 'ssl';
$mail->SMTPAuth = true;
$mail->Username = $smtpUsername;
$mail->Password = $smtpPassword;
$mail->setFrom($emailFrom, $emailFromName);
$mail->addAddress($emailTo, $emailToName);
$mail->Subject = $subject;
$mail->Body = $body;
return $mail->send();
}//end of function
?>