1

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");
Damith
  • 62,401
  • 13
  • 102
  • 153
LeMoussel
  • 5,290
  • 12
  • 69
  • 122

1 Answers1

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?

Cudus
  • 37
  • 1
  • 6
MoShe
  • 6,197
  • 17
  • 51
  • 77
  • Thank you for your response. But I can download ImapX (HTTP Error 404. The requested resource is not found.). I'm looking for a solution to connect either POP or IMAP For now I have tested the IMAP connection on yahoo. – LeMoussel Jun 03 '12 at 09:35
  • please see the following:http://abramovi.blogspot.co.il/2012/06/connecting-to-email-account-and-fetch.html – MoShe Jun 04 '12 at 17:07