You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
got System.Net.NetworkInformation is not supported on this platform when new SMTP client.
Platform (please complete the following information):
OS: Windows
.NET Runtime: [e.g. CoreCLR, Mono]
.NET Framework: .NET 6
MailKit Version: 3.2
Exception
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The type initializer for 'MailKit.Net.Smtp.SmtpClient' threw an exception.
System.TypeInitializationException: The type initializer for 'MailKit.Net.Smtp.SmtpClient' threw an exception.
---> System.PlatformNotSupportedException: System.Net.NetworkInformation is not supported on this platform.
To Reproduce
Steps to reproduce the behavior:
new SmtpClient()
Expected behavior
new instance created.
The text was updated successfully, but these errors were encountered:
Describe the bug
got System.Net.NetworkInformation is not supported on this platform when new SMTP client.
Platform (please complete the following information):
Exception
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The type initializer for 'MailKit.Net.Smtp.SmtpClient' threw an exception.
System.TypeInitializationException: The type initializer for 'MailKit.Net.Smtp.SmtpClient' threw an exception.
---> System.PlatformNotSupportedException: System.Net.NetworkInformation is not supported on this platform.
To Reproduce
Steps to reproduce the behavior:
new SmtpClient()
Expected behavior
new instance created.
The text was updated successfully, but these errors were encountered: