Swift_SmtpTransport phalcon
<p>I'm trying to load SwiftMailer on Phalcon 3 with the Dependency Injector and I get an error about the Swift_transporter Service. </p>

<blockquote>
  <p><strong>Phalcon\Di\Exception:</strong> Service '\Swift_SmtpTransport' wasn't found in the dependency injection container</p>
</blockquote>

<p>I would like to know how I can load the Swift_SmtpTransport service in the dependency injector, <strong>without composer</strong>. I know that composer can solve this problem easily, but I wonder if there are other options.</p>

<p>In my service.php file I added the next lines:</p>

<pre><code>$di-&gt;set('mailer', function(){

$mailer = new Manager([
    'driver'   =&gt; 'sendmail',
    'sendmail' =&gt; '/usr/sbin/sendmail -bs',
    'viewsDir' =&gt; $this-&gt;config-&gt;application-&gt;viewsDir . 'emails/',
    'from'     =&gt; [
        'email' =&gt; 'notify@website.com',
        'name'  =&gt; 'Company Team'
    ]
]);

return $mailer;
</code></pre>

<p>});</p>

<p>Then i call the service with the next lines:</p>

<pre><code>$this-&gt;mailer([
        'to'      =&gt; 'email@test.com',
        'name'    =&gt; 'First and Last Name',
        'subject' =&gt; _('Welcome to my website'),
        'body'    =&gt; [
            'view'   =&gt; 'welcome',
            'params' =&gt; [
                'name' =&gt; 'First Name',
                'link' =&gt; $this-&gt;url-&gt;get('users/activate/?email=email@test.com&amp;activation_key=******')
            ]
        ]
    ]);
</code></pre>