gmail xoauth smtp php

I am using xoauth to send email.
I have completed all the steps to send the email. but i am getting this error always when sending email using smtp through phpmailer version 6.8 .  

Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: QUIT command failed Detail: Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials jd10-20020a170903260a00b001b562175158sm2721800plb.244 - gsmtp SMTP code: 535 Additional SMTP info: 5.7.8

0 0 180
0 REPLIES 0