title: Error: Class 'PHPMailer' not found
body: <p>Error: Fatal error: Uncaught Error: Class 'PHPMailer' not found in C:\xampp\htdocs\php-mailer\index.php:4 Stack trace: #0 {main} thrown in C:\xampp\htdocs\php-mailer\index.php on line 4</p>
  
  <p>My PHP Code here:</p>
  
  <pre><code>require("src/PHPMailer.php");
  require("src/Exception.php");
  $mail = new PHPMailer();  
  
  $mail-&gt;IsSMTP();                                      
  $mail-&gt;Host = 'smtp.gmail.com'; 
  $mail-&gt;SMTPAuth = true;     // turn on SMTP authentication
  $mail-&gt;Username = "gmail id";  // SMTP username
  $mail-&gt;Password = "mypassword"; // SMTP password
  
  $mail-&gt;From = "opensourcesivaprakash@gmail.com";
  $mail-&gt;FromName = "Mailer";
  $mail-&gt;AddAddress("siva.sing.sivan@gmail.com", "Josh Adams");
  $mail-&gt;AddAddress("sp");                  // name is optional
  //$mail-&gt;AddReplyTo("opensourcesivaprakash@gmail.com", "Information");
  
  $mail-&gt;WordWrap = 50;                                 // set word wrap to 50 characters
  //$mail-&gt;AddAttachment("/var/tmp/file.tar.gz");         // add attachments
  //$mail-&gt;AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
  $mail-&gt;IsHTML(true);                                  // set email format to HTML
  
  $mail-&gt;Subject = "Here is the subject";
  $mail-&gt;Body    = "This is the HTML message body in bold!";
  $mail-&gt;AltBody = "This is the body in plain text for non-HTML mail clients";
  
  if(!$mail-&gt;Send())
  {
     echo "Message could not be sent. 
  ";
     echo "Mailer Error: " . $mail-&gt;ErrorInfo;
     exit;
  }
  
  echo "Message has been sent";
  </code></pre>
  
  <p>Please let me know what mistake I made here in my code.</p>