This is the error that throws me:
Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/answer/14257 px4sm26723732oec.7 - gsmtp "
I have enabled "Allow less secure app" in my account and i haven't enable 2-Step Verification. And yes i already did "Display Unlock Captcha" configuration too, and nothing's changed. Please somebody help me.
This is my .env code:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME="my mail"
MAIL_PASSWORD="my password"
MAIL_ENCRYPTION=tls
This is my mail.php code:
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => "my mail", 'name' => null],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('my password'),
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
];