Outlook
A family of Microsoft email and calendar products.
4,358 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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