Yahoo Mail IMAP connectivity problems or issues
So, in order to access Yahoo Mail:
- Turn on two-factor authentication in Yahoo: https://help.yahoo.com/kb/SLN5013.html
- Generate application password: https://help.yahoo.com/kb/SLN15241.html
- Use the app password in the program instead of your normal Yahoo password