Comments (6)
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.
Thanks for your reply. I really have read the FAQ and even googled on the internent.
-
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 tried STARTTLS before, it just blocked, no error no response.
-
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.
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.
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.
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.
ok, thanks
from mailkit.
Related Issues (20)
- MimeMessage.TextBody not returning body HOT 3
- Code style: use <inheritdoc cref="..."> instead of copying doc HOT 5
- I get a couple of compile errors when updating MailKitLite from 4.3.0 to 4.4.0 HOT 2
- MimeMessage.Subject == null throws off the MailVisitor.
- Regression: Nested signed mail showed as nameless.eml HOT 3
- Question: Logging EHLO Response in DB HOT 2
- XLIST IMAP command being sent automatically on AuthenticateAsync HOT 3
- UTF-8 not supported ?! HOT 1
- client_credentials flow fails for SMTP Office 365 HOT 1
- Special Character on Password HOT 3
- MailKit Login Issue: Stalling on Inbox Access HOT 2
- With version 4.4.0 I cannot send SMTP mail via Strato.de HOT 11
- Cannot delete message from IMPAP account. HOT 4
- Accessing the IP address of devices logged into the e-mail account HOT 1
- Recieved MimeMessage contains wrong embedded Images HOT 1
- IMAP client connected and authenticated but Inbox returns null HOT 4
- in the sample project of imapidle, is it possible to add a sample method for how to cancel the "IDLE" mode. thanks! HOT 2
- SmtpProtocolException - Last Smtp Response before failure HOT 6
- SMTP not working with Strato.de HOT 4
- SmtpClient Exception Behavior Change in 4.4.0 HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailkit.