15

I want to retrieve emails from my Go Daddy account using C#. I tested OpenPop.NET to do that like so:

    OpenPop.Pop3.Pop3Client PopClient = new OpenPop.Pop3.Pop3Client();
    PopClient.Connect("pop.secureserver.net", 995, true);
    PopClient.Authenticate("username", "pass");

My problem is that the server does not accept the user credentials. I'm sure the credentials are OK.

I have tried the same code with my Gmail account and every thing goes OK. Is something missing that Go Daddy wants me to set?

Is there another a .NET tool like OpenPop.NET that I can use to retrieve emails using the POP3 protocol?

Adrian Toman
  • 11,316
  • 5
  • 48
  • 62
Khalid Omar
  • 2,353
  • 5
  • 35
  • 46

3 Answers3

18

I found out that OpenPop.Pop3.AuthenticationMethod.UsernameAndPassword is the missing part. I have modified the code to be following and it works.

OpenPop.Pop3.Pop3Client PopClient = new OpenPop.Pop3.Pop3Client();
PopClient.Connect("pop.secureserver.net", 995, true);
PopClient.Authenticate("username", "pass", OpenPop.Pop3.AuthenticationMethod.UsernameAndPassword);
Adrian Toman
  • 11,316
  • 5
  • 48
  • 62
Khalid Omar
  • 2,353
  • 5
  • 35
  • 46
  • I used this plugin to read emails, it worked well but it doesn't reads the body of the mail. It happened with you or not? – Harry .Naeem Feb 23 '17 at 09:32
1

Port 995 is Secure POP3 which doesn't have to be supported by your mail provider.

Use 110 for regular POP3.

Vnuk
  • 2,673
  • 1
  • 32
  • 49
0

Its probably because your email account is not configured for Pop by default.
Go to settings in your email account and enable pop.