Robie69
6 months ago

Auto Send Email

Posted 6 months ago by Robie69

I'm working on auto sending an email in Laravel 5.4

I've created the desired email template, and tested that it works properly.

Now I need to make it auto send.

I've setup a console command, and copied the code I had in my Controller over.

every time I run the command via command line, I get the following error:

"In Connection.php line 647:

could not find driver (SQL: select top 1 * from [EMPLOYEE] where [id] = 722)

In Connector.php line 68:

could not find driver"

This works perfectly fine in the Controller, so the drivers are loaded. Why won't it work now in the commands folder?

Please sign in or create an account to participate in this conversation.