title: mailjet for codeigniter
body: <p>I have been following this documentation here:</p>
  
  <p><a href="https://www.mailjet.com/docs/code/php/codeigniter" rel="nofollow">https://www.mailjet.com/docs/code/php/codeigniter</a></p>
  
  <p>In my config folder I created a php file as shown above like this:</p>
  
  <pre><code>   &lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  $config['protocol'] = 'smtp';
  $config['smtp_host'] = 'ssl://in.mailjet.com';
  $config['smtp_port'] = '465';
  $config['smtp_user'] = 'API key';
  $config['smtp_pass'] = 'Pass Key';
  $config['charset'] = 'utf-8';
  $config['mailtype'] = 'html';
  $config['newline'] = "\r\n";
  
  ?&gt;
  </code></pre>
  
  <p>But I am still getting the following error:</p>
  
  <pre><code>An Error Was Encountered
  Non-existent class: Email
  </code></pre>
  
  <p>When I try to load the lib like this in a controller:</p>
  
  <pre><code>$this-&gt;load-&gt;library('email');
  
  $this-&gt;email-&gt;from('your_sender@address.com', 'You');
  $this-&gt;email-&gt;to('recipient@example.com');
  $this-&gt;email-&gt;subject('My first email by Mailjet');
  $this-&gt;email-&gt;message('Hello from Mailjet &amp; CodeIgniter !');
  
  $this-&gt;email-&gt;send();
  </code></pre>
  
  <p>Cheers.</p>