title: Adding external libs to the Phalcon project
body: <p>Cannot add the Phalcon mailer and use it in the project. Doing same as instructions say. I have config linking to <code>'libraryDir' =&gt; APP_PATH . '/app/lib/'</code>, in the <code>lib</code> folder I have a <code>Mailer</code> folder where I put the <code>composer.json</code>. </p>
  
  <p>I followed <a href="https://github.com/phalcon-ext/mailer" rel="nofollow noreferrer">THIS</a> but after using the <code>lib</code> in the Controller I've got </p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Class 'Phalcon\Ext\Mailer\Manager'</p>
  </blockquote>
  
  <p>Code :</p>
  
  <pre><code>use Phalcon\Http\Response; 
  use Phalcon\Mvc\Model\Criteria; 
  use Phalcon\Mvc\Model\Query\BuilderInterface; 
  use Phalcon\Di\InjectionAwareInterface; 
  use Phalcon\Mvc\Model\Resultset; use Phalcon\Ext\Mailer\Manager; 
  use Phalcon\Ext\Mailer\Message;
  
  class EmailController extends Phalcon\Mvc\Controller { 
  public function initialize() { 
  if ($this-&gt;request-&gt;isPost()) { 
  $this-&gt;view-&gt;disable(); 
  } 
  }
  public function indexAction() {
  
  }
  
  public function sendEmailAction(){
      if ($this-&gt;request-&gt;isPost()) {
  
          $config = [
              'driver'   =&gt; 'mail',
              'from'         =&gt; [
                  'email' =&gt; 'manager@email.com',
                  'name'    =&gt; 'Email'
              ]
          ];
  
          $email = new Phalcon\Ext\Mailer\Message($config);
          return "send";
      }
  }
  }
  </code></pre>