title: phpMailer - How do you Remove Recipients
body: <p>There are a lot of StackOverflow questions on this topic, but I couldn't find one that was able to help with the issue I'm having. The script that I'm writing sends out multiple emails to various recipients with different message contents.</p>
  
  <p>I can get this working by re-initializing the <code>phpMailer</code> object multiple times, but what I'd like to be able to do is create the object a single time, and then re-assign the following fields:</p>
  
  <pre><code>$mail-&gt;AddAddress($email);
  $mail-&gt;Subject = $subject;
  $mail-&gt;IsHTML(false);
  $mail-&gt;Body = $message;
  </code></pre>
  
  <p>That way I can just run those four lines of code and then send the mail out, again and again, as many times as necessary. The <code>Subject</code>, <code>IsHTML</code>, and <code>Body</code> fields are easily changed, so the problem I'm having is in the <code>AddAddress</code> function.</p>
  
  <p>As you can probably guess, after I send out the first email, changing recipients for future emails will result in those stacking onto the current list of recipients.</p>
  
  <p>To put it simply, <em>how can I remove the email addresses associated with my <code>$mail</code> object so that I can assign them each time while removing the old addresses?</em></p>
  
  <p>Is there another function besides <code>AddAddress</code> that I can use that will just assign the addresses?</p>