Git Product home page Git Product logo

Comments (6)

jstedfast avatar jstedfast commented on June 13, 2024

This is expected behavior for ANY network app because sometimes servers are down or unreachable for one reason or another.

You can work around this particular error by disabling certificate revocation checks, but I wouldn't recommend it in most cases.

client.CheckCertificateRevocation = false;

This was all explained in the FAQ, by the way, which was linked in the exception message.

How can I make the exception message clearer? I get asked this question at least once per week, sometimes daily.

Do people not read exception messages and just immediately jump to reporting "bugs"? Do they not notice the link to the FAQ?

I spent a lot of time working to make SslHandshakeException helpful instead of just letting Microsoft's SSL exceptions bubble up to users because those exceptions are extremely useless.

SslHandshakeException, on the other hand, gives you all the information you need on a silver platter.

Honestly it seems like no one reads exception messages to me and assumes all exceptions are bugs.

Why?

from mailkit.

ismlsmile avatar ismlsmile commented on June 13, 2024

Thanks for your reply. I really have read the FAQ and even googled on the internent.

  1. I thinks this is not the problem of mail server
    because the same code is ok on windows and linux, and they all connect the same mail server

  2. I tried STARTTLS before, it just blocked, no error no response.

  3. network is ok.

This maybe not a bug, as I googled, no one report such problem on android. Maybe I should set some special param to adapt the mail server. But the same code is ok on other platform. Could the library handle the calling difference on different platform?

from mailkit.

jstedfast avatar jstedfast commented on June 13, 2024

I thinks this is not the problem of mail server because the same code is ok on windows and linux, and they all connect the same mail server

I never said it was a problem with the mail server. It's a problem connecting to the ssl certificate authority server.

This is something that System.Security.dll's SslStream does in order to verify that the SSL certificate is authentic.

It has nothing to do with MailKit and it has nothing to do with your mail server.

from mailkit.

ismlsmile avatar ismlsmile commented on June 13, 2024

Thank you for explaining the problem.
So maybe the root problem is System.Security.dll's SslStream is not very stable on android?

from mailkit.

jstedfast avatar jstedfast commented on June 13, 2024

I doubt that's the problem. But go ahead and go to the dotnet project'a GitHub page and file a bug report.

from mailkit.

ismlsmile avatar ismlsmile commented on June 13, 2024

ok, thanks

from mailkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.