Getting Error of IMAP

Hmmm, are all of your Gmail settings correct?

Please check the screenshot in this post (may need to swap IMAP for SMTP):

Check this page as well: