title: PHPMailer Mass mailing using BCC and catching not successfull email addressses
body: <p>I am trying to send NewsLetter to 1500 users using PHPMailer and my SMTP servers.</p>
  
  <p>I have tried sending the mails to 2 BCC emails for test, and it sucessfully sent mails.
  But before I go ahead and send the mail to 1500 email address, I have few questions.</p>
  
  <p>I am using this code snippet.</p>
  
  <pre><code>&lt;?php
  
  require "../PHPMailer-master/PHPMailerAutoload.php";
  
  $bcc_list = array('emailaddrs1,emailaddress2');
  
  $mail             = new PHPMailer();
  
  $body             = file_get_contents('contents.html');
  $body             = eregi_replace("[\]",'',$body);
  
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;Host       = "smtp.myserver.com"; // SMTP server
  $mail-&gt;SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                             // 1 = errors and messages
                                             // 2 = messages only
  $mail-&gt;SMTPAuth   = true;                  // enable SMTP authentication
  $mail-&gt;Host       = "smtp.myserver.com"; // sets the SMTP server
  $mail-&gt;Port       = 25;                    // set the SMTP port for the GMAIL server
  $mail-&gt;Username   = "mailer@myserver.com"; // SMTP account username
  $mail-&gt;Password   = "mypasss";        // SMTP account password
  
  $mail-&gt;SetFrom('mailer@myserver.com', 'myserver Support');
  
  $mail-&gt;AddReplyTo("mailer@myserver.com","myserver Support");
  
  $mail-&gt;Subject    = "Email sent from xampp";
  
  $mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
  
  $mail-&gt;MsgHTML($body);
  
  $address = "support@myserver.com";
  $mail-&gt;AddAddress($address, "support@myserver.com");
  
  
  foreach($bcc_list as $bcc_email){
     $mail-&gt;AddBCC($bcc_email);
  }
  
  if(!$mail-&gt;Send()) {
    echo "Mailer Error: " . $mail-&gt;ErrorInfo;
   //insert that emaill address into database for re-emailing.
  } else {
    echo "Message sent!";
  }
  </code></pre>
  
  <p>1) How can i make , the email show users email address in <code>&lt;To&gt;</code> field and not my dummy address ?</p>
  
  <p>2) Does it send as 1 email or 1500 emails ? 
  i.e., how can I catch which emails are successfully sent and which arent ( because of some timeout or something goes wrong) so I can send them again, and not have to spam the all others?</p>