Kindly follow the below settings to configure the email account in email client.
++++
Username : Full email address
Password : Correct emailpassword
Select IMAP
Incoming mail server : imap.gmail.com
Requires SSL: Yes Port: 993
Outgoing Mail server : smtp.gmail.com
Requires SSL: Yes Port for SSL: 465
Requires TLS: Yes (if available) Port for TLS/STARTTLS: 587
In More or Advanced Settings - Select SMTP Authentication Enabled
++++