Failed to authenticate on SMTP server error using gmail
I'm trying to set up email for my first laravel project, and was thrilled that there's a laracast for it: https://laracasts.com/lessons/mailers I've followed the simple steps, chose gmail in mail.php (x's added for anonymity): 'driver' => env('MAIL_DRIVER', 'smtp'), 'host' => env('MAIL_HOST', 'smtp.gmail.com'), 'port' => env('MAIL_PORT', 587), 'from' => ['address' => 'dianexxxxx@gmail.com', 'name' => 'Diane Kaplan'], 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'username' => 'dianexxxxx@gmail.com', 'password' => 'xxxxx', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, .env has (x