title: how can i include phpmailer 5.2 using composer?
body: <p>I'm trying to instantiate the PHP mailer class which i've installed using composer. The class is located in vendor\phpmailer\phpmailer\class.phpmailer.php</p>
  
  <pre><code>-Project
    -src
        -SmtpHandler.php
    -vendor
       -phpmailer
           -phpmailer
              class.phpmailer.php
    index.php
  </code></pre>
  
  <p>I'm trying to load this class inside SmtpHandler as follows:</p>
  
  <pre><code>&lt;?php
  namespace Fusion;
  
  require_once __DIR__ . '/../vendor/autoload.php';
  class SmtpHandler {
  
  var $mail;
  
  function __construct () {
      $this-&gt;mail = new PHPMailer;
  </code></pre>
  
  <p>my composer.json file is autoloading my php classes like so: </p>
  
  <pre><code> "autoload": {
      "psr-4": {
           "Fusion\\": "src"
      }
  
  },
  </code></pre>
  
  <p>when $this->mail = new PHPMailer; is called, i recieve an error <strong>Fatal error: Class 'Fusion\PHPMailer' not found in /var/www/proj/Project/src/SmtpHandler.php on line 8</strong></p>
  
  <p>Do i need to use vendor\phpmailer\phpmailer\class.phpmailer ? or am i using psr-4 wrong?</p>
  
  <p>Thanks</p>