MailBee.NET library is also available in the version which is compatible with .NET Standard 1.3 and higher (.NET Core 1.0/1.1) and .NET Standard 2.0 and higher (.NET Core 2.0 and higher). It can be used with ASP.NET Core as well. Tested with .NET Core 1.0/1.1/2.0/2.1/2.2/3.0/3.1 and .NET 5.0/6.0/7.0/8.0/9.0/10.0.
.NET Core 1.0/1.1 (.NET Standard 1.3) edition mostly has .NET 4.5 feature set (including async/await methods) with the following limitations:
async/await versions. You may get PlatformNotSupportedException when calling, let's say, Imap.Connect instead of Imap.ConnectAsync (this seems to be an issue with .NET Core 1.0/1.1 only)..NET Core 2.0 (.NET Standard 2.0) edition has much fewer limitations:
The MailBee.NET.dll for .NET Core resides in C:\Program Files (x86)\MailBee.NET Objects\.netstandard1.3 folder (...\.netstandard2.0 for .NET Core 2.0 and newer). Or, via NuGet, the required .DLL will be installed automatically. Just run this command:
Install-Package MailBee.NET
Install System.Text.Encoding.CodePages package (for .NET Core 2.0+):
Install-Package System.Text.Encoding.CodePages
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) must be called before accessing any MailBee classes. This initializes codepages support in .NET Core runtime.
Filesystem access (paths to locations accessible for reading or writing files) is also platform-specific and can depend on your application settings and permissions. If you just need some place where to save the log file for debugging, System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) folder can be used.
Copyright © 2006-2026 AfterLogic Corporation. All rights reserved.