[Tutor] IMAP Login Error - raise self.error(dat[-1])

Alan Gauld alan.gauld at yahoo.co.uk
Thu Mar 9 05:46:29 EST 2017


On 09/03/17 06:05, Sreekul Nair wrote:

> Running this simple program ends in following error -
> File "C:\Python27\lib\imaplib.py", line 520, in login
> raise self.error(dat[-1]) error: LOGIN failed.

First thing to test with errors like this is can
you login manually over telnet/ssh using the exact
same port and credentials? It's more likely
to be a server configuration issue than your
Python code.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list