I didn't mention you should change
although I'm not sure this is the cause of the problem.
Also your file name refers to imap and you use POP3. Make sure pop3 is enabled for this account. if you want to use imap, check https://docs.python.org/3/library/imapli...plib.IMAP4
getpass.getuser()
to your user name (in the example it reads it from environmental variables)Quote:getpass.getuser()
Return the “login name” of the user.
This function checks the environment variables LOGNAME, USER, LNAME and USERNAME, in order, and returns the value of the first one which is set to a non-empty string. If none are set, the login name from the password database is returned on systems which support the pwd module, otherwise, an exception is raised.
although I'm not sure this is the cause of the problem.
Also your file name refers to imap and you use POP3. Make sure pop3 is enabled for this account. if you want to use imap, check https://docs.python.org/3/library/imapli...plib.IMAP4
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs