gmail login failure using python and imaplib
问题 I\'m seeking some help logging into a gmail account and downloading some emails using a python script. I\'m trying to adapt an approach found here, but I\'m running into a problem with step 1, accessing the account via imap. here is the code I\'m starting with: import email import imaplib m = imaplib.IMAP4_SSL(\"imap.gmail.com\",993) rc, resp = m.login(\'myemailaddress\',\'mypassword\') I get the following error: Traceback (most recent call last): File \"email.py\", line 1, in <module> import