KIEYCH
2 years ago
15
10
Laravel

Method 'to' not found in \Illuminate\Support\Facades\Mail

Posted 2 years ago by KIEYCH

Hey guys, I am trying to send an Email, but I'm getting this error: Method 'to' not found in \Illuminate\Support\Facades\Mail

I'm doing this on a laravel command, it's like a cron to send all emails that are queued in a table 'EmailQueue'

I have this on top of the file: use Illuminate\Support\Facades\Mail;

I was reading docs: https://laravel.com/docs/5.4/mail

They say its Mail::to But it doesn't work? What am I missing here? I've got mail.php and .env files configured to send the emails with my gmail account (just for testing for now)

Thanks in advance!

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