Before using Laravel's mail drivers in Lumen, you will need to install the illuminate/mail
package via Composer. Then, you should register the in your bootstrap/app.php
file:
After creating the configuration file, you should register the mailer and its aliases within your bootstrap/app.php
file:
Usage
The Lumen mail drivers utilize the same code as the Laravel mail drivers. Beyond configuration, there are no differences between sending mail in Lumen and sending mail in Laravel; therefore, please consult the for usage examples.