title: PHPMailer sends email to different address and different body at the click of submit button
body: <pre><code>  $autoemail = new PHPMailer\PHPMailer\PHPMailer();
  
    $autoemail-&gt;IsSMTP(); // send via SMTP
  
    $autoemail-&gt;CharSet="utf-8";
  
    $autoemail-&gt;WordWrap = 50; // set word wrap
  
    $autoemail-&gt;IsHTML(true); // send as HTML
  
    $autoemail-&gt;AddAddress("example@gmail.com"); 
    $autoemail-&gt;AddReplyTo("example@gmail","EXAMPLE"); 
  
    $autoemail-&gt;WordWrap = 50; 
  
  $autoemail-&gt;Subject="Hello";    
  $autoemail-&gt;Body="Testing only";
  
  if(!$autoemail-&gt;Send())
      {
          echo "Message was not sent";
          echo "Mailer Error: " . $autoemail-&gt;ErrorInfo;
          exit;
      }
  
  $autoemail-&gt;ClearAllRecipients();
  
  $autoemail-&gt;AddAddress("pleasehelp@gmail.com", "EXAMPLE"); 
  
  $autoemail-&gt;Body="Testing Only";
  
  if(!$autoemail-&gt;Send())
      {
          echo "Message was not sent";
          echo "Mailer Error: " . $autoemail-&gt;ErrorInfo;
          exit;
      }
  </code></pre>
  
  <p>I want to send email to two different email addresses, but this coding gives me error that it sends the email twice to both addresses and after sending the email, my web page turns to white page saying it has error ERR_INCOMPLETE_CHUNKED_ENCODING. Please help me on this! Thank you!</p>