towhid
4 months ago
161
1
Laravel

i want to email from my gmail Account , my email work when i MAIL_DRIVER=log , but when i try to send gmail host its not work

Posted 4 months ago by towhid
//log code

[2019-05-26 19:12:35] local.DEBUG: Message-ID: <[email protected]>
Date: Sun, 26 May 2019 19:12:35 +0000
Subject: contact message Querry
From: Admin management application <[email protected]>
To: towhid <[email protected]>
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

SEnd Email  

this is my env code

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=tls

its show this error

Failed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "534", with message "534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor j20sm2303155pfi.138 - gsmtp ". Authenticator PLAIN returned Expected response code 235 but got code "534", with message "534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor j20sm2303155pfi.138 - 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 j20sm2303155pfi.138 - gsmtp 

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