Mail with Lumen (without facades)

I don't like using Facades with Lumen. It just doesn't feel right, for whatever reason.

To use the mailer with Lumen, you need to change the default service provider from $this->app->singleton('mailer', function ($app) { etc to $this->app->singleton('Illuminate\Contracts\Mail\Mailer', function ($app) { etc.

Your best bet is to copy and paste the service provider from the mailer package and put it in app/Providers/MailServiceProvider.php and then register it in the bootstrap/app.php file.

Then, where you want to use the mailer class, just add use Illuminate\Contracts\Mail\Mailer and start mailing away!