protected function registerSupportedMailer()
    {
        $this->app->singleton('antares.support.mail', function ($app) {
            $this->registerSwiftMailer();

            $mailer = new Mailer(
                    $app->make('view'), $app->make('antares.swift.mailer'), $app->make('events')
            );
            if ($app->bound('queue')) {
                $mailer->setQueue($app->make('queue'));
            }
            $from   = $app->make('antares.memory')->make('primary')->get('email.from');
            $config = $app->make('config')->get('mail.from');


            $mailer->alwaysFrom(array_get($from, 'address', array_get($config, 'address')), array_get($from, 'name', array_get($config, 'name')));

            $to = $app->make('config')->get('mail.to');

            if (is_array($to) && isset($to['address'])) {
                $mailer->alwaysTo($to['address'], $to['name']);
            }

            return $mailer;
        });
    }