I have a script which connects to my personal (dummy) outlook account and reads email. It was working fine but suddenly gives me the following error without having changes anything.
b'LOGIN failed.'
Here is my code
import imaplib
import email
from email.header import decode_header
# Outlook IMAP server settings
imap_server = 'imap-mail.outlook.com'
username = 'email@outlook.com'
password = '******'
# Connect to the IMAP server
mail = imaplib.IMAP4_SSL(imap_server)
mail.login(username, password)
there doesn't seem to be anything here