prepare("SELECT * FROM setting LIMIT 1"); $stmt_settings->execute(); $result_settings = $stmt_settings->get_result(); $rows_R = $result_settings->fetch_assoc(); $address = $rows_R['address'] ?? ''; $phone1 = $rows_R['phone1'] ?? ''; $phone2 = $rows_R['phone2'] ?? ''; $phone3 = $rows_R['phone3'] ?? ''; $email1 = $rows_R['email1'] ?? ''; $email2 = $rows_R['email2'] ?? ''; $email3 = $rows_R['email3'] ?? ''; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require __DIR__ . '/PHPMailer/src/Exception.php'; require __DIR__ . '/PHPMailer/src/PHPMailer.php'; require __DIR__ . '/PHPMailer/src/SMTP.php'; $success = ""; if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['form_type']) && $_POST['form_type'] == 'contact') { // reCAPTCHA verification if (isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])) { $secretKey = "6Lf4IZEsAAAAAFEBoANvD2K51KC2WSu9n2XrlT1U"; $captchaResponse = $_POST['g-recaptcha-response']; $verifyURL = "https://www.google.com/recaptcha/api/siteverify?secret=" . $secretKey . "&response=" . $captchaResponse; $response = file_get_contents($verifyURL); $responseKeys = json_decode($response, true); if ($responseKeys["success"]) { // Get form values safely $name = $_POST['name'] ?? ''; $email = $_POST['email'] ?? ''; $phone = $_POST['phone'] ?? ''; $category = $_POST['category'] ?? ''; $message_content = $_POST['message'] ?? ''; if (!empty($name) && !empty($email) && !empty($phone)) { // SMTP MAIL (CPANEL CONFIG) $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'mail.jithwin.com'; $mail->SMTPAuth = true; $mail->Username = 'support@jithwin.com'; $mail->Password = '[hbvD^Ng4k1P@Oaw'; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->SMTPOptions = [ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ] ]; $mail->setFrom('support@jithwin.com', 'Website Enquiry'); $mail->addAddress('support@jithwin.com'); $mail->addReplyTo($email, $name); $mail->isHTML(false); $subject = "Website Enquiry: " . $category; $mail->Subject = $subject; $mail->Body = "Name: $name\n" . "Email: $email\n" . "Phone: $phone\n" . "Category: $category\n\n" . "Message:\n$message_content"; $mail->send(); $success = "Message submitted successfully!"; $_POST = []; } catch (Exception $e) { $success = "Error sending message: " . $mail->ErrorInfo; } } } } } ?> Contact Jithwin Technologies | GST Billing Software Coimbatore

Contact Us

Our Head Office Address

Call Us Anytime

Send An Email

shape
contact with us!

Have Any Questions?

Enthusiastically disintermediate one-to-one leadership via business e-commerce. Dramatically reintermediate compelling process improvements rather than empowered relationships.