���� JFIF fdasasfas213sdaf
Server IP : 88.222.243.232 / Your IP : 216.73.216.200 Web Server : LiteSpeed System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64 User : u479334040 ( 479334040) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u479334040/domains/ggfoods.net/public_html/ |
Upload File : |
<?php session_start(); error_reporting(E_ALL); ini_set('display_errors', 1); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $message = ""; if (!empty($_POST['honeypot'])) { $_SESSION['message'] = "Spam detected. Your submission has been rejected."; header("Location: contact.php"); exit(); } if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = isset($_POST['name']) ? $_POST['name'] : ''; $email = isset($_POST['email']) ? $_POST['email'] : ''; $mobile = isset($_POST['phone']) ? $_POST['phone'] : ''; $message_text = isset($_POST['message']) ? $_POST['message'] : ''; $captcha_code = isset($_POST['captcha_code']) ? trim($_POST['captcha_code']) : ''; if ($captcha_code === $_SESSION["captcha_code"]) { $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'equiry.adjointinfocom@gmail.com'; $mail->Password = 'xueo xljn udct uasw'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->setFrom('equiry.adjointinfocom@gmail.com', 'Enquiry Receiveds From'); $mail->addAddress('deepakch534@gmail.com'); $mail->isHTML(true); $mail->Subject = 'You have received an enquiry!'; $mail->Body = ' <html> <head> <title>You have received an enquiry!</title> <style> body { font-family: "Helvetica Neue", Arial, sans-serif; margin: 0; padding: 0; background-color: #f9f9f9; color: #333; } table { width: 100%; border-collapse: collapse; } td { padding: 20px 0px 0px 0px; text-align: left; vertical-align: top; } .header { background: linear-gradient(45deg,rgb(167, 206, 228),rgb(61, 72, 77)); color: white; padding: 10px; text-align: center; font-size: 32px; font-weight: bold; letter-spacing: 2px; box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1); margin-bottom: 20px; } .content-table { width: 100%; background-color : #f5f5f580; border-radius: 8px; overflow: hidden; box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05); } .content-table td { border-bottom: 1px solid #432b2b; font-size: 16px; padding: 15px; } .content-table tr:last-child td { border-bottom: none; } .content-table b { color: #333; font-weight: bold; } .cta-button { background: #ff7b00; color: white; padding: 15px 30px; text-decoration: none; border-radius: 50px; text-align: center; font-size: 18px; display: inline-block; margin-top: 30px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); transition: background 0.3s ease-in-out; } .cta-button:hover { background: #ff9b33; } .footer { background-color: #f7f7f7; text-align: center; padding: 10px; font-size: 14px; color: #888; border-radius: 0 0 8px 8px; margin-top: 20px; } .footer a { color: #0183cf; text-decoration: none; font-weight: bold; } .footer p { margin: 0; } .footer span { font-weight: bold; } .brand-logo { width: 100px; margin-bottom: 20px; } .content-table .highlight { background-color: #f5f5f5; font-weight: 600; } .section-title { font-size: 20px; color: #333; font-weight: 700; margin-top: 25px; margin-bottom: 10px; border-bottom: 2px solid #0183cf; display: inline-block; padding-bottom: 5px; } </style> </head> <body> <table> <tr> <td> <div class="header"> G. G. Foods </div> <table class="content-table"> <tr> <td><b>Name:</b></td> <td class="highlight">' . $name . '</td> </tr> <tr> <td><b>Email:</b></td> <td class="highlight">' . $email . '</td> </tr> <tr> <td><b>Phone:</b></td> <td class="highlight">' . $mobile . '</td> </tr> <tr> <td><b>Message:</b></td> <td class="highlight">' . nl2br($message_text) . '</td> </tr> </table> </td> </tr> </table> </body> </html> '; $mail->send(); echo '<script>window.location = "thank-you.php";</script>'; } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } else { $_SESSION['message'] = "Incorrect captcha code. Please try again."; header("Location: contact.php"); exit; } }