📁
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-blocks.php
14.73 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
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 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); $mail->isSMTP(); $mail->Host = 'smtp.mail.us-east-1.awsapps.com'; $mail->SMTPAuth = true; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->Username = 'contact@finesolartools.com'; // YOUR Gmail/SMTP email $mail->Password = 'n-8u@3JATU@I'; // YOUR Gmail/SMTP app password $mail->setFrom('contact@finesolartools.com', 'Finesolartools'); $mail->addAddress($email, $name); $mail->addReplyTo('contact@finesolartools.com', 'Finesolartools'); // Email content for the user $mail->IsHTML(true); $mail->Subject = "Subscribe"; $mail->Body=' <body style="margin:0; padding:0; background-color:#f1f2f5; font-family:Roboto, Arial, sans-serif; color:#1e3557;"> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#f1f2f5; margin:0; padding:0; margin-bottom:30px;"> <tr> <td align="center" style="padding:0; margin:0;"> <table role="presentation" width="600" border="0" cellspacing="0" cellpadding="0" style="background-color:#0b1a4a; padding:40px 0; margin-top:30px;"> <tr><td></td></tr> </table> <table role="presentation" width="600" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff; border-radius:6px; max-width:600px; width:100%;"> <tr> <td align="center" style="padding:20px 20px;"> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" style="padding:20px 0;"> <h3 style="font-size: 22px;">Finesolartools</h3> </td> </tr> </table> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" style="font-size:14px; line-height:22px; color:#1e3557;"> <p style="margin:0 0 15px 0;"><b>Hi,</b></p> <p style="margin:0 0 15px 0;"> Thank you for subscribing to Finesolartools! </p> <p style="margin:0 0 15px 0;">We respect your inbox, so we will only send you valuable and relevant content.</p> <p style="margin:0 0 15px 0;">Thank you for trusting Finesolartools.</p> <p style="margin:0;"><b>Best,</b><br><b>Finesolartools</b></p> </td> </tr> </table> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:30px;"> <tr> <td align="center" style="font-size:12px; color:#566881;"> <p style="margin:0 0 10px 0;"> You are receiving this email because you subscribed Finesolartools. </p> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body>'; // Send the email to the user if ($mail->send()) { $response = "Thank you for subscribed our newsletter."; } else { $response = "Unable to send the email."; } // Initialize PHPMailer for the admin notification email $mail2 = new PHPMailer(true); // SMTP settings for the admin notification email $mail2->isSMTP(); $mail2->Host = 'smtp.mail.us-east-1.awsapps.com'; $mail2->SMTPAuth = true; $mail2->SMTPSecure = 'ssl'; $mail2->Port = 465; $mail2->Username = 'contact@finesolartools.com'; $mail2->Password = 'n-8u@3JATU@I'; $mail2->setFrom('contact@finesolartools.com', 'Finesolartools'); $mail2->addAddress('contact@finesolartools.com', 'Finesolartools'); // Email content for the admin $mail2->IsHTML(true); $mail2->Subject = "subscribe details"; $mail2->Body=' <body style="margin:0; padding:0; background-color:#f1f2f5; font-family:Roboto, Arial, sans-serif; color:#1e3557;"> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#f1f2f5; margin:0; padding:0; margin-bottom:30px;"> <tr> <td align="center" style="padding:0; margin:0;"> <table role="presentation" width="600" border="0" cellspacing="0" cellpadding="0" style="background:linear-gradient(80deg, rgb(42,204,222) 0%, rgb(214,83,119) 50%, rgb(130,33,215) 100%); padding:40px 0; margin-top:30px;"> <tr><td></td></tr> </table> <table role="presentation" width="600" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff; border-radius:6px; max-width:600px; width:100%;"> <tr> <td align="center" style="padding:20px 20px;"> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" style="padding:20px 0;"> <h3 style="font-size: 22px;">Finesolartools</h3> </td> </tr> </table> <table role="presentation" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" style="font-size:14px; line-height:22px; color:#1e3557;"> <p style="margin:0 0 15px 0;"><b>subscribe details,</b></p> <p style="margin:0 0 15px 0;"> Following user has submitted their subscribe details: </p> <p style="margin:0 0 15px 0;"> Email: '.$email.' </p> <p style="margin:0;">Regards,<br>Finesolartools</p> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body>'; // 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