I tested this one line in my php artisan tinker in my prod VM
>>> Mail::raw('test mail from tinker', function ($message) {
... $message->to('jdoe@gmail.com');
... });
I kept getting
Swift_TransportException with message 'Failed to authenticate on SMTP server with username "noreply.jdoe@gmail.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 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/?p=BadCredentials l62sm6726934qte.52 - gsmtp
". Authenticator PLAIN returned Expected response code 235 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/?p=BadCredentials l62sm6726934qte.52 - gsmtp
". Authenticator XOAUTH2 returned 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/?p=BadCredentials l62sm6726934qte.52 - gsmtp
".'
>>>
I have this in my .env
MAIL_ENCRYPTION=ssl
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_FROM=noreply.jdoe@gmail.com
MAIL_PASSWORD=qazwsx1234rfgvb
MAIL_TO=jane@outlook.com
That same qazwsx1234rfgvb
is working on my local. I got email to sent out, and I see email.
I did this already :
- ✅ Turn ON - Less Secure App
- ✅ Turn ON - 2 Factor Authentication
- ✅ Create App Password -
qazwsx1234rfgvb
is app word
Any suggestions on what elses to check ?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2WSIsuU
via IFTTT
Aucun commentaire:
Enregistrer un commentaire