logging into outlook shared email account using imap python failing with error 'b'LOGIN failed.' from 18th_january-2023

Arvind Sharma 0 Reputation points
connect(server, user, password)
      4 def connect(server, user, password):
      5     m = imaplib.IMAP4_SSL(server)
----> 6     m.login(user, password)
      7     m.select()
      8     return m

/usr/lib/python3.8/imaplib.py in login(self, user, password)
    601         typ, dat = self._simple_command('LOGIN', user, self._quote(password))
    602         if typ != 'OK':
--> 603             raise self.error(dat[-1])
    604         self.state = 'AUTH'
    605         return typ, dat
A family of Microsoft email and calendar products.
2,659 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,311 questions
{count} votes