SMTP Error: Could not authenticate [closed]

our team had enabled two factor authentication for mail so for this reason i am getting error.
after disabling the two factor authentication SMTP is working.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)