title: PHPMailer sends duplicate email
body: <p><strong>PHPMailer</strong></p>
  
  <pre><code>&lt;?php
      $mail = new PHPMailer;
      $mail-&gt;IsSMTP();
      $mail-&gt;IsHTML(true);
      $mail-&gt;SMTPSecure = "tls";
      $mail-&gt;Mailer = "smtp";
      $mail-&gt;Host = "smtp.office365.com";
      $mail-&gt;Port = 587;
      $mail-&gt;SMTPAuth = true; // turn on SMTP authentication
      $mail-&gt;Username = "xxx";
      $mail-&gt;Password = "xxx";
      $mail-&gt;setFrom('xxx', 'Website');
  
      //Send to Admin
      $AdminEmail = 'admin.example@gmail.com';
      $mail-&gt;AddAddress($AdminEmail, $AdminName);
      $mail-&gt;Subject  = "This is an email";
      $mail2 = clone $mail;
      $body = 'Hi Admin. This is an email';
      $mail-&gt;Body = $body;
  
      if(!$mail-&gt;Send()) {
      echo 'Message was not sent.';
      echo 'Mailer error: ' . $mail-&gt;ErrorInfo;
      } else {
      echo 'Message has been sent.';
      }
  
      //Send to User
      $UserEmail = 'user.example@gmail.com';
      $mail2-&gt;AddAddress($UserEmail, $UserName);
      $body2 = 'Hi User. This is an email';
      $mail2-&gt;Body = $body2;
  
      if(!$mail2-&gt;Send()) {
      echo 'Message was not sent.';
      echo 'Mailer error: ' . $mail2-&gt;ErrorInfo;
      } else {
      echo 'Message has been sent.';
      }
  ?&gt;
  </code></pre>
  
  <p>I have an issue where when i send the emails, <strong>Admin</strong> will receive <code>$mail</code> and <code>$mail2</code> when they supposed to just receive <code>$mail</code>. While there's no problem with <strong>User</strong>. Works fine by receiving <code>$mail2</code>. I've tried to put <code>$mail-&gt;ClearAddresses();</code> but it's still the same. By chance, what is the problem?</p>