Getting errors from Imaplib
Beatrix Willius from Moth Software
mail at beatrixwillius.de
Sun Nov 30 15:42:14 CET 2014
no, pinging Yahoo doesn't work. But this is an additional problem - perhaps I tested too often. This is one of my accounts for Imap testing and I only copied the value from Mail.
For getting the error back this doesn't really matter.
> import imaplib
> host = 'imap.mail.yahoo.com'
> imap_connection = imaplib.IMAP4(host)
> except imaplib.IMAP4.error:
> print('authentication failed')
> On 30.11.2014, at 13:02, Chris Angelico <rosuav at gmail.com> wrote:
> You're getting an error before it even gets as far as authenticating -
> there's a network-level issue here. Are you able to ping that host?
> Something's not connected.
Mit freundlichen Grüßen/Regards
Mail Archiver X: The email archiving solution for professionals
More information about the Python-list