Script PHP de envio de email no PHPMailer usando uma lista de endereços
<?php   //Import the PHPMailer class into the global namespace  use PHPMailer\PHPMailer\PHPMailer;  use PHPMailer\PHPMailer\SMTP;   require_once("vendor/autoload.php");     $listas = file("/var/www/html/testemail/contas");   foreach($listas as $usuario)  {   //echo ($usuario);  /**   * This example shows making an SMTP connection without using authentication.   */  //Create a new PHPMailer instance  $mail = new PHPMailer;  //Tell PHPMailer to use SMTP  $mail->isSMTP();  //Enable SMTP debugging  // SMTP::DEBUG_OFF = off (for production use)  // SMTP::DEBUG_CLIENT = client messages  // SMTP::DEBUG_SERVER = client and server messages  $mail->SMTPDebug = SMTP::DEBUG_SERVER;  //Set the hostname of the mail server  $mail->Host = 'antispam.seati.ma.gov.br';  //Set the SMTP port number - likely to be 25, 465 or 587  $mail->Port = '25';   if ($mail->Port == 465)          $mail->SMTPSecure = "ssl";       ...