Sarav's avatar

Sending mail in Lumen via gmail smtp

I have been trying to send mail in freshly installed lumen. I installed illuminate\mail and have uncommented the $app->withFacades(); as mentioned in lumen documentation. But I end up with an error saying

ErrorException in Mailer.php line 61:

Argument 1 passed to Illuminate\Mail\Mailer::__construct() must be an instance of Illuminate\View\Environment, instance of Illuminate\View\Factory given, called in var/www/lumen.app/public_html/vendor/illuminate/mail/src/Illuminate/Mail/MailServiceProvider.php on line 30 and defined

It seems like the same issues occurs in laravel but by removing bootstrap/compiled.php file it can be fixed. Whereas in lumen I cant find any compiled.php file. Help me fix this issue.

0 likes
0 replies

Please or to participate in this conversation.