Gmail Configuration Setup to Send Mail in Laravel 7
Many junior laravel developers don’t know what is gmail configuration setup in laravel. If you are working with laravel and you need to setup gmail configuration for sending email in laravel.
if you want to set configuration of gmail then first go to mail.php file, you are work on laravel 4 and laravel 5 it’s not issue, because you can set common setting for both version of laravel framework .
After setup we can send email via gmail smtp server in laravel 7. Let's check it.
'driver' => smtp, 'host' => smtp.gmail.com, 'port' => 587, 'from' => ['address' => 'email@example.com', 'name' => 'Test'], 'encryption' => tls, 'username' => firstname.lastname@example.org, 'password' => test123, 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false,
this way you can set your gmail account details and try this but if you still find error then you have problem security.