Stack OverFlow when connecting to yahoo email with IMAP4

Jun 3, 2012 at 8:26 AM

I try to connect to mail yahoo account using net/imap MailSystem.NET. But I get error Stack OverFlow on function

imap.Login()
Anybody tries to connect to Yahoo! Mail and had some experiences about it with MailSystem.NET ?

Here's my working code.

            Imap4Client imap = new Imap4Client();
            imap.ConnectSsl("imap.mail.yahoo.com", 993);
            imap.Login("login@yahoo.com", "PWD");
            imap.Command("capability");