title: Using PHPMailer without Composer
body: <p>I just tried this example:</p>
  <pre><code>// for use PHP Mailer without composer : 
  
  // ex. Create a folder in root/PHPMAILER
  // Put on this folder this 3 files find in &quot;src&quot; 
  // folder of the distribution : 
  // PHPMailer.php , SMTP.php , Exception.php
    
    // include PHP Mailer
    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\Exception;
    include dirname(__DIR__) .'/PHPMAILER/PHPMailer.php';
    include dirname(__DIR__) .'/PHPMAILER/SMTP.php';
    include dirname(__DIR__) .'/PHPMAILER/Exception.php';
  
    // i made a function 
  
     /*
      *
      * Function send_mail_by_PHPMailer($to, $from, $subject, $message);
      * send a mail by PHPMailer method
      * @Param $to -&gt; mail to send
      * @Param $from -&gt; sender of mail
      * @Param $subject -&gt; suject of mail
      * @Param $message -&gt; html content with datas
      * @Return true if success / Json encoded error message if error 
      * !! need -&gt; classes/Exception.php - classes/PHPMailer.php - classes/SMTP.php
      *
      */
      function send_mail_by_PHPMailer($to, $from, $subject, $message){
  
            // SEND MAIL by PHP MAILER
            $mail = new PHPMailer();
            $mail-&gt;CharSet = 'UTF-8';
            $mail-&gt;isSMTP(); // Use SMTP protocol
            $mail-&gt;Host = 'your_host.com'; // Specify  SMTP server
            $mail-&gt;SMTPAuth = true; // Auth. SMTP
            $mail-&gt;Username = 'my_mail@your_host.com'; // Mail who send by PHPMailer
            $mail-&gt;Password = 'your_passord_of_your_box'; // your pass mail box
            $mail-&gt;SMTPSecure = 'ssl'; // Accept SSL
            $mail-&gt;Port = 465; // port of your out server
            $mail-&gt;setFrom($from); // Mail to send at
            $mail-&gt;addAddress($to); // Add sender
            $mail-&gt;addReplyTo($from); // Adress to reply
            $mail-&gt;isHTML(true); // use HTML message
            $mail-&gt;Subject = $subject;
            $mail-&gt;Body = $message;
  
            // SEND
            if( !$mail-&gt;send() ){
  
                // render error if it is
                $tab = array('error' =&gt; 'Mailer Error: '.$mail-&gt;ErrorInfo );
                echo json_encode($tab);
                exit;
            }
            else{
                // return true if message is send
                return true;
            }
  
      }
      /*
      *
      * END send_mail_by_PHPMailer($to, $from, $subject, $message)
      * send a mail by PHPMailer method
      *
      */
    
      // use function :
      send_mail_by_PHPMailer($to, $from, $subject, $message);
  </code></pre>
  <p>When calling <code>new PHPMailer()</code> the system throws a error:</p>
  <blockquote>
  <p>Can't find class PHPMailer.</p>
  </blockquote>
  <p>The include of the files works fine. What is wrong?</p>