OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
newgalaxy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📁
.vscode
-
09/16/2024 04:14:27 AM
rwxr-xr-x
📄
Health-risks.html
11.68 KB
12/10/2024 06:17:53 AM
rw-r--r--
📁
bu_newgalaxy_server_nov_08_2024
-
11/08/2024 01:02:01 PM
rwxr-xr-x
📄
business_risk.html
10.57 KB
12/10/2024 06:17:52 AM
rw-r--r--
📄
contact.html
5.84 KB
12/10/2024 06:17:51 AM
rw-r--r--
📁
css
-
09/16/2024 04:14:27 AM
rwxr-xr-x
📁
images
-
11/09/2024 10:11:47 AM
rwxr-xr-x
📄
index.html
5.18 KB
12/10/2024 06:17:53 AM
rw-r--r--
📁
js
-
09/16/2024 05:11:52 AM
rwxr-xr-x
📄
life_risk.html
10.37 KB
12/10/2024 06:17:52 AM
rw-r--r--
📄
send_email.php
1.65 KB
12/08/2024 04:49:10 PM
rw-r--r--
📄
test.html
4.15 KB
11/09/2024 10:09:21 AM
rw-r--r--
📄
testimonial.html
8 KB
12/10/2024 06:17:50 AM
rw-r--r--
📄
vehicle-risk.html
17.54 KB
12/10/2024 06:17:51 AM
rw-r--r--
📁
vendor
-
11/22/2024 06:02:08 AM
rwxr-xr-x
Editing: send_email.php
Close
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; // Load PHPMailer require 'vendor/autoload.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { // Get form data $name = htmlspecialchars($_POST['name']); $email = htmlspecialchars($_POST['email']); $mobile = htmlspecialchars($_POST['mobile']); $message = htmlspecialchars($_POST['message']); // Initialize PHPMailer $mail = new PHPMailer(true); try { // SMTP Configuration $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'donotreply@knobly.com'; $mail->Password = 'ipmhstdrbkwfhcna'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; // Email settings $mail->setFrom('donotreply@knobly.com', 'New User'); $mail->addAddress(''); $mail->isHTML(true); $mail->Subject = 'New Contact Form Submission'; $mail->Body = " <h2>Contact Form Submission</h2> <p><strong>Name:</strong> $name</p> <p><strong>Email:</strong> $email</p> <p><strong>Mobile:</strong> $mobile</p> <p><strong>Message:</strong> $message</p> "; // Send email $mail->send(); echo "<script>alert('Message sent successfully!'); window.location.href='contact.html';</script>"; } catch (Exception $e) { echo "<script>alert('Failed to send message. Error: {$mail->ErrorInfo}'); window.location.href='contact.html';</script>"; } } else { header("Location: contact.html"); exit(); }