ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host (while accessing Gmail emails)
问题 i'm getting the title error when I'm trying to access my gmail emails using the imap-tools module of python. Below is the details as given during establishing the connection. Traceback (most recent call last): File "d:\PythonLabs\delete_gmail_emails.py", line 3, in <module> gautham_gmail_box = MailBox('imap.gmail.com') File "C:\Users\skolluru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\imap_tools\main.py", line 61, in __init__ host, port or imaplib.IMAP4_SSL_PORT, keyfile,