S22.Imap icon indicating copy to clipboard operation
S22.Imap copied to clipboard

yahoo mails

Open iyerrama25 opened this issue 12 years ago • 1 comments

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!

iyerrama25 avatar Mar 05 '13 14:03 iyerrama25

Hi,

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

smiley22 avatar Mar 05 '13 16:03 smiley22

Well, I just tried with .com and it worked fine, during registration yahoo redirected me to its indian server, thus it came up as [email protected] 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?

iyerrama25 avatar Mar 06 '13 06:03 iyerrama25