title: phpMailer mailing list don't send
body: <p>I'm having problems sending emails with a mailing list, this is what i have now and no email are sended</p>
  
  <pre><code> public function mailingList($email, $nome, $message){
      $destinatário = $this-&gt;getAllEmails();
      $mail = new PHPMailer;
      $mail-&gt;isSendmail();
      $mail-&gt;setFrom('XXXX@xxxxx.xxx.xxx', 'Webmaster');
      $mail-&gt;IsHTML(true);
      $mail-&gt;Subject = 'Informação - XXXX';
      $mail-&gt;CharSet = 'UTF-8';
      $mail-&gt;Body = "
          &lt;html&gt;
          &lt;head&gt;
              &lt;meta http-equiv='Content-Type' content='text/html; charset=utf-8' /&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;h1&gt;Mensagem da Administração&lt;/h1&gt;
              &lt;table&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
              &lt;td&gt;&lt;strong&gt;Mensagem:&lt;/strong&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
              &lt;td&gt;$message&lt;/td&gt;
              &lt;/tr&gt;
              &lt;/tbody&gt;
              &lt;/table&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;Equipa xxxxx.&lt;/p&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;Obrigado&lt;/p&gt;
              &lt;/body&gt;
              &lt;/html&gt;";
      $mail-&gt;addAttachment('../img/logo_pek.gif');
      foreach ($destinatário as $dest) {
          $correio = $dest['email'];
          if($correio != ''){
              $mail-&gt;ClearAddresses();
              $mail-&gt;addAddress($correio, 'Informação - XXXX');
          }
          if (!$mail-&gt;send()) {
              echo "Mailer Error: " . $mail-&gt;ErrorInfo;
              return array('status' =&gt; 'error', 'message' =&gt; 'O email não foi enviado...');
          }
          else{
              echo "Ok";
              return array('status' =&gt; 'success', 'message' =&gt; 'O email foi enviado com sucesso...');
          }
      }
  }
  </code></pre>
  
  <p>When i use var_dump($correio) in the loop i have all the emails, so i don't get why the email is not sended.
  Any help?</p>