I noticed in earlier posts that IMAP was only basically implemented. Trying to connect to Gmail using IMAP and cannot. Curious as to the status?
shytxmn - I am using gmail and it's working fine. Replace the red highlighted areas with your own email@example.com. Notice the ports and other checked settings selected for both the Sending and Receiving sections. Hope this helps.
You should check your Gmail account settings that IMAP and/or POP is actually enabled.
See here: https://support.google.com/mail/answer/7126229?hl=en
Thank you for letting me know your gmail is now fixed.