I want to use IMAP to connect Kmail to Gmail. After setting up the account via wizard in kmail, I get this error (I replaced my email address with abc) :
The server for account "Google Mail (abc)" refused the supplied username and password. Do you want to go to the settings, have another attempt at logging in, or do nothing?
Login failed, server replied: A000002 NO Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 ( Failure ) [ ALERT ]
I am using Ubuntu 14.04.3 LTS with KDE
I followed steps written here.