Lumen 5.3 send email
A little late to the party, but here's how I've done it in Lumen 5.4 (and I know it might be a little clumsy and not suitable for everyone, but still):
1) pull in illuminate/mail
:
composer require illuminate/mail
2) add the service provider to your bootstrap/app.php
:
$app->register(\Illuminate\Mail\MailServiceProvider::class);
and uncomment $app->withFacades();
It's possible/likely the following can be achieved through .env
but I haven't tried:
3) Install phanan's cascading config - https://github.com/phanan/cascading-config and follow the installation process for Lumen described there
4) create config
folder in your application's root and copy-paste full Laravel's config/mail.php
5) add $app->configure('mail');
to bootstrap/app.php
6) make sure the actual config in mail.php
is correct
Now you should be able to send mails the same way you do in full Laravel installation.