Connecting to yahoo email with IMAP4 MailSystem.NE

2019-07-25 21:01发布

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条回答
劳资没心,怎么记你
2楼-- · 2019-07-25 22:05

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?

查看更多
登录 后发表回答