imapliy.error:[AUTHENTICATION FAILED) Invalid credentials (Failure)

45 Views Asked by At

Good day everyone . I need help with my coding. I'm using imaplib to login into gmail to send and receive messages

The code

Import imaplib

message = imaplib.IMAP4_SSL('imap.gmail.com)

message.login('username', 'password')

After this ,I run the code to check if there's no problem .

But it raised an error saying

imapliy.error:[AUTHENTICATION FAILED) Invalid credentials (Failure)

My logins are correct

I enabled imap on my gmail,still same error

I was expecting the code will run through successfully

0

There are 0 best solutions below