title: Using PHPMailer with yii2
body: <p>I'm trying to send email via site/contact using PHPMailer. In my actionContact I have code:</p>
  
  <pre><code>require '/../../common/phpmailer/PHPMailerAutoload.php';
  //Create a new PHPMailer instance
  $mail = new PHPMailer;
  ...
  </code></pre>
  
  <p>I put everything in common/phpmailer directory. In "common" directory in root folder of advanced template. I'm getting error</p>
  
  <pre><code>Class 'backend\controllers\PHPMailer' not found
  </code></pre>
  
  <p>This way worked fine in yii1, but not in yii2</p>