smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

yahoo mails #41

Open iyerrama25 opened 11 years ago

iyerrama25 commented 11 years ago

I tried using your code to retrieve mails from yahoo.com but am getting : SocketException Unhandled, which usually happens when the entered ID or passwd is wrong.

using (ImapClient Client = new ImapClient("imap.mail.yahoo.in", 993, "user", "passwd", AuthMethod.Login, true))

could you please find a solution for it?

thanks!

smiley22 commented 11 years ago

Hi,

any reason you are using yahoo.in instead of yahoo.com? I just tried with "imap.mail.yahoo.com" and it worked fine.

iyerrama25 commented 11 years ago

Well, I just tried with .com and it worked fine, during registration yahoo redirected me to its indian server, thus it came up as abc@yahoo.in instread of .com. btw, in case the user ID or passwd is wrong, it goes into InvalidCrediantials Unhandled, how can I give a prompt to the user informing him that the entered userID or passwd is wrong instead of showing an exception?