PATH:
home
/
lab2454c
/
highnetrock.com
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require __DIR__ . '/vendor/autoload.php'; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $fromEmail = $_POST['email'] ?? ''; $fromName = $_POST['name'] ?? 'High Net Rock'; $message = $_POST['message'] ?? ''; $mail = new PHPMailer(true); try { // Server settings $mail->isSMTP(); $mail->Host = 'mail.highnetrock.com'; $mail->SMTPAuth = true; $mail->Username = 'support@highnetrock.com'; // Your SMTP username $mail->Password = '^!;Qt}{#K^)G'; // Your SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // SSL encryption $mail->Port = 465; // Recipients $mail->setFrom('support@highnetrock.com', 'High Net Rock'); $mail->addAddress('isaac.daniel@sparxnovate.com'); // $mail->addAddress('moises.dasilva@sparxnovate.com'); // $mail->addAddress('santanu@thecodersmind.com'); // Content $mail->isHTML(true); $mail->Subject = 'New Contact Information: High Net Rock'; $mail->Body = "<h3>User Email : {$fromEmail}</h3>"; //$mail->AltBody = "Message from: ({$fromEmail})"; $mail->send(); // Redirect back with success header("Location: index.php?status=success"); exit; } catch (Exception $e) { // Redirect back with error header("Location: index.php?status=error&msg=" . urlencode($mail->ErrorInfo)); exit; } } else { header("Location: index.php?status=invalid"); exit; }
[-] composer.lock
[edit]
[-] composer.json
[edit]
[-] logo.png
[edit]
[-] sendmail.php
[edit]
[-] index.php
[edit]
[+]
..
[-] wp-blog-header.php
[edit]
[-] whsy.php
[edit]
[+]
cgi-bin
[-] landing-page.zip
[edit]
[+]
vendor
[-] vendor.zip
[edit]
[-] .htaccess
[edit]
[-] landing-page.png
[edit]
[+]
.well-known
[-] wp-cron.php
[edit]