Connecting to yahoo email with IMAP4 MailSystem.NE

2019-07-25 21:09发布

问题:

I try to connect to mail yahoo account from C# using net/imap MailSystem.NET. But I get error Stack OverFlow on imap.Login command

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");

回答1:

I would like to suggest you to use ImapX

I used it an manage to access Gmail yahoo etc.

BTW- were you able to connect to another mail server like Gmail.com?