title: PHPmailer SMTP auth configuration
body: <p>Something doesn't work with my phpmailer smtp.
  The php page should connect to an smtp authenticated server (with username and password), then authenticate to the specific mailbox I choose with username and password.</p>
  
  <p>Basically I have a two-step authentication: one to the server, one to the mailbox.</p>
  
  <ul>
  <li>What the username and password below refer to?</li>
  <li>How could I login to the server (with user and password) and then to
  the mailbox (other user and other password)?</li>
  </ul>
  
  <p>Thank you to who will be able to help me.</p>
  
  <pre><code>// SMTP auth
  $mail-&gt;IsSMTP();
  $mail-&gt;SMTPAuth     = ($smtp['auth'] ? true : false);
  $mail-&gt;SMTPSecure   = ($smtp['secure'] ? $smtp['secure'] : false);
  $mail-&gt;Host         = $smtp['host'];
  $mail-&gt;Port         = $smtp['port'];
  $mail-&gt;Username     = $smtp['username'];
  $mail-&gt;Password     = $smtp['password'];
  </code></pre>