title: Class 'PHPMailer\PHPMailer\PHPMailer' not found in
body: <p>I am using Composer, but nothing I have tried has worked.</p>
  
  <p>I tried require composer autoload.</p>
  
  <pre><code>require BASE_URL.'assets/vendor/autoload.php';
  </code></pre>
  
  <p>and use the namespace</p>
  
  <pre><code>use PHPMailer\PHPMailer\PHPMailer;
  use PHPMailer\PHPMailer\Exception;
  </code></pre>
  
  <p>but I still receiving a Error message</p>
  
  <blockquote>
    <p>Fatal error: Class 'PHPMailer\PHPMailer\PHPMailer' not found in</p>
  </blockquote>
  
  <p>Here is my simplified class</p>
  
  <pre><code>use PHPMailer\PHPMailer\PHPMailer;
  use PHPMailer\PHPMailer\Exception;
  
  require 'vendor/phpmailer/src/Exception.php';
  require 'vendor/phpmailer/src/PHPMailer.php';
  require 'vendor/phpmailer/src/SMTP.php';
  class Email extends model{ 
      public function enviarContato($nome, $email, $mensagem){
          $mail = new PHPMailer(true); 
  }
  }
  </code></pre>
  
  <p>I believe that i am importing wrong, so here is my path structure.</p>
  
  <p><img src="https://i.imgur.com/15hAD8P.png" alt="img"></p>
  
  <p><img src="https://i.imgur.com/8ZLvWRi.png" alt="img"> </p>
  
  <p>I'm using Email.php.</p>
  
  <p>Thanks</p>