title: PHPmailer: Error: You must provide at least one recipient email address
body: <p>I know there is several similar threads but I have tried all without any success. </p>
  
  <pre><code>$recipient = ($_POST["to"]);
  $mail-&gt;AddAddress = ($recipient);
  </code></pre>
  
  <p>This doesn't work. I have tried with many different combinations as well, like this:</p>
  
  <pre><code>$mail-&gt;addAddress = ($recipient, 'name');
  </code></pre>
  
  <p>I am also running the validate address, which returns true</p>
  
  <pre><code>var_dump(PHPMailer::validateAddress($recipient));
  </code></pre>
  
  <p>Still I am getting <code>Error: You must provide at least one recipient email address</code></p>
  
  <p>Any suggestions?</p>