OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
znew1aws-ses
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/04/2025 08:32:49 AM
rwxr-xr-x
📄
.browserslistrc
208 bytes
03/03/2025 08:18:55 AM
rw-r--r--
📄
.gitignore
42 bytes
03/03/2025 08:18:55 AM
rw-r--r--
📄
.htaccess
803 bytes
03/03/2025 08:18:55 AM
rw-r--r--
📄
.htaccess.swp
12 KB
03/03/2025 08:18:55 AM
rw-r--r--
📄
.travis.yml
199 bytes
03/03/2025 08:18:55 AM
rw-r--r--
📄
addList.php
4.7 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
allTemplates.php
5 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
bbsns_subscribe.php
5.14 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
bcreateList.php
9.61 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
blacklist.php
14.09 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
bounceViewList.php
5.86 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
bounce_handler.php
9.87 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
bprocess_emails.php
6.73 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
checkNotificationTopics.php
5.11 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
check_identity
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
checknotif.php
1.01 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
ckeditor.php
2.14 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
click_handler.php
1.75 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
combined.php
11.23 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
complaintsViewList.php
5.72 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
complaints_handler.php
2.89 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
composer.json
200 bytes
03/03/2025 08:18:56 AM
rw-r--r--
📄
composer.lock
39.12 KB
03/03/2025 08:18:56 AM
rw-r--r--
📄
createList.php
10.05 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
credentials
-
03/03/2025 08:25:28 AM
rwxr-xr-x
📄
csv.php
10.1 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
db.php
1000 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
delete_list.php
509 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
deliveryViewList.php
5.71 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
delivery_handler.php
3.25 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
download_Complaints.php
974 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
download_bounces.php
1007 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
download_delivered.php
971 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
download_unique_open.php
1.6 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
edit_list.php
8.39 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
feedback.php
1.66 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
footer.php
4.71 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
housekeeping.php
9.97 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
index.php
8.12 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
insert_list.php
2.64 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
log
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
navbar.php
1.64 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
newCompaign.php
5.94 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
open_handler.php
1.75 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
process_emails.php
10.21 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
real-recipients.csv
39.48 KB
03/03/2025 08:18:56 AM
rw-r--r--
📄
sample.csv
55 bytes
03/03/2025 08:18:56 AM
rw-r--r--
📄
send_email.php
987 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
send_email_campaignGraph.php
2.24 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
sendgrid.php
3.62 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
showListMembers.php
4.54 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
showcase.php
7.93 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
sidebar.php
3.11 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
sns_subscribe.php
5.25 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
submit_form.php
2.48 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
test-mail.csv
337 bytes
03/03/2025 08:18:56 AM
rw-r--r--
📄
test.php
969 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
test_process_emails.php
1.91 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
upload_image.php
606 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📁
uploads
-
03/03/2025 08:25:38 AM
rwxr-xr-x
📁
vendor
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
verify.html
486 bytes
03/03/2025 08:18:56 AM
rw-r--r--
📄
verify.php
3.12 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
verify_email.php
5.12 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
viewCampaign.php
13.05 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
viewList.php
8.47 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
zsidebar.php
3.27 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
zviewCampaign.php
8.94 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
zzprocess_emails.php
10.07 KB
05/19/2025 10:07:15 AM
rw-r--r--
Editing: verify_email.php
Close
<html> <head> <!-- Add this inside the <head> section of your HTML document --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div id="response"></div> </body> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> function verifyNotification(email) { $.ajax({ url: "checkNotificationTopics.php", type: "POST", data: { check_email: email }, success: function(response) { $("#response").html(response); $("#response").append("<a href='index.php'><button class='btn btn-primary'>Go Back to Dashboard</button></a>"); }, error: function(xhr, status, error) { $("#response").html("An error occurred: " + error); } }); } </script> <?php require 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; use Aws\Ses\SesClient; use Aws\Exception\AwsException; // AWS credentials $awsAccessKeyId = 'AKIARWSGL3TOIAEQEUPU'; $awsSecretAccessKey = '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'; $region = 'ap-south-1'; // Change the region if necessary // This keys is for the sending the mail $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; // Create an AWS SES client $client = new SesClient([ // 'version' => 'latest', 'version' => '2010-12-01', 'region' => $region, 'credentials' => [ 'key' => $awsAccessKeyId, 'secret' => $awsSecretAccessKey, ], ]); function listEmail($client) { try { // Send email verification request $result = $client->listIdentities([ 'IdentityType' => 'EmailAddress', ]); $listEmail = $result->get('Identities'); echo "<pre>"; print_r($listEmail); echo "</pre>"; return $listEmail; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } function verifyEmail($client, $emailAddress) { try { // Send email verification request $result = $client->VerifyEmailAddress([ 'EmailAddress' => $emailAddress, ]); // Output the result echo "Verification request sent to " . $emailAddress . ". Please check the email inbox for the verification link.<br><br>"; echo "After verifying the email, Please click the below button to set the Bounce, Complaints and Delivery emails for the analytics..<br> "; echo "<button class='btn btn-primary' onclick='verifyNotification(\"".$emailAddress."\")'>Please Click Here</button>"; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; function sendEmail($fromEmail, $fromName, $toName, $toEmail, $emailSubject, $emailBody) { global $awsAccessKey; global $awsSecretKey; $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; $mail->isSMTP(); $mail->Host = 'email-smtp.ap-south-1.amazonaws.com'; $mail->Username = $awsAccessKey; $mail->Password = $awsSecretKey; $mail->Port = 587; $mail->SMTPDebug = 2; // Set to 2 for detailed debug output $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->setFrom($fromEmail, $fromName); $mail->addAddress($toEmail, $toName); $mail->isHTML(true); $mail->Subject = $emailSubject; $mail->Body = $emailBody; $mail->send(); return true; } catch (Exception $e) { // Handle invalid email and store in bounce table // handleBouncedEmail($toEmail, $e->getMessage()); return false; } } function checkVerifyEmail($client, $checkEmail) { $listEmail = listEmail($client); foreach ($listEmail as $email) { if ($email == $checkEmail) { if (sendEmail($checkEmail, 'Test', 'Trash', 'trash@knobly.com', 'Verified email Status', 'This email is to check the email is verified or not')) { return true; } else { return false; } } } return false; } if (isset($_POST['email'])) { $email = $_POST['email']; verifyEmail($client, $email); // if(checkVerifyEmail($client, $ccemail)){ // echo "Email $ccemail is verified"; // } // else{ // verifyEmail($client,$email); // } } // $ccemail = 'bhuvanesh@knobly.com'; // if(checkVerifyEmail($client, $ccemail)){ // echo "Email $ccemail is verified"; // } // else{ // echo "Email $ccemail is not verified"; // } ?> </html>