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

Arvind Sharma 0 Reputation points
2023-01-18T07:44:08.3633333+00:00
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
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.
1,986 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
193 questions
{count} votes