title: How to integrate PHPMailer with Codeigniter 3
body: <p>Hi I am trying to use <a href="https://github.com/PHPMailer/PHPMailer" rel="noreferrer">PHPMailer Library</a>  from GitHUB in my Codeigniter application.</p>
  
  <p>I downloaded the code and unzipped in my <code>application\library</code> folder.
  So there I have a folder called <strong>vendor</strong> inside which resides the source code for  PHPMailer.</p>
  
  <p>Now I created a File named <code>Bizmailer_Controller.php</code>.</p>
  
  <pre><code>&lt;?php defined('BASEPATH') OR exit('No direct script access allowed');
  
  /**
  * 
  */
  class Bizmailer_Controller extends CI_Controller
  {
  
      public function __construct()
      {
          parent::__construct();
  
          require "vendor\phpmailer\phpmailer\PHPMailerAutoload";
          $this-&gt;Bizmailer = new PHPMailer();
          //Set the required config parameters
          $this-&gt;Bizmailer-&gt;isSMTP();                                      // Set mailer to use SMTP
          $this-&gt;Bizmailer-&gt;Host = 'smtp1.example.com;smtp2.example.com';  // Specify main and backup SMTP servers
          $this-&gt;Bizmailer-&gt;SMTPAuth = true;                               // Enable SMTP authentication
          $this-&gt;Bizmailer-&gt;Username = 'user@example.com';                 // SMTP username
          $this-&gt;Bizmailer-&gt;Password = 'secret';                           // SMTP password
          $this-&gt;Bizmailer-&gt;SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
          $this-&gt;Bizmailer-&gt;Port = 465;    
          //return $api;
      }
  }
  </code></pre>
  
  <p>Now in my controllers I am trying to load it like this :</p>
  
  <pre><code>$this-&gt;load-&gt;library('Bizmailer');
  $mail = new Bizmailer();
  </code></pre>
  
  <p>And I Get this error :</p>
  
  <blockquote>
    <p>An Error Was Encountered</p>
    
    <p>Unable to load the requested class: Bizmailer</p>
  </blockquote>
  
  <p>So Please guide me how I can load or integrate this library in Codeigniter.</p>