retrieve email using c#?

后端 未结 3 1902
有刺的猬
有刺的猬 2020-12-31 08:24

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.Pop         


        
相关标签:
3条回答
  • 2020-12-31 08:55

    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);
    
    0 讨论(0)
  • 2020-12-31 09:17

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

    0 讨论(0)
  • 2020-12-31 09:21

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

    Use 110 for regular POP3.

    0 讨论(0)
提交回复
热议问题