-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send mail via System.Net.Mail.SmtpClient isn't working on Android, but on Windows #9587
Comments
Seems there are SSL issues with Android in. NET in multiple technologies. |
As pointed out this seems to be at least a layer deeper on the Android bindings or maybe even on the plugin/.NET runtime in this case. Unfortunately this is not something that we can do something about in the .NET MAUI project. |
@jfversluis can you give a tip how to solve that? Where to report etc.? Thank you |
I just tested the same sample on Xamarin.Forms and on Android/UWP it is working like expected. |
So any workaround to this? |
If this is true then this issue needs to be reopened @jfversluis |
For me this exception only got raised if I'm running the sample on an emulator for .NET MAUI. If I'm running the code on a real device (I've tested with Android 11 and Android 12) it is also running. The Xamarin version is running on an emulator and on a real device. |
This issue also occurs with SignalR on Android 8.0. |
Could you create a new issue? I think @jfversluis doesn't plan to reopen this one |
Description
I've created a small sample trying to send an email using the
System.Net.Mail.SmtpClient
. The sample is working on Windows, but not on Android. AnInterop+AndroidCrypto+SslException
is thrown.Steps to Reproduce
System.Net.Mail.SmtpClient
and calling theSendMailAsync()
on AndroidInterop+AndroidCrypto+SslException
is thrownI've tried using an
outlook.com
mail address with thesmtp-mail.outlook.com
host.See the following basic sample:
MauiSendMailSample.zip
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: