-
Notifications
You must be signed in to change notification settings - Fork 153
NET.Core
Dmitry Boyarintsev edited this page Nov 14, 2021
·
2 revisions
The package was not written to be used for NET.Core originally, Net.Framework is the primary target.
There're some additional steps that needs to be taken in order to make the library work.
TextClient class is using codepage 1252 (hard-coded). The codepage is not available in NET.Core by default.
In order to have the encoding available, it should be:
- installed from additional package System.Text.Encoding.CodePages (add the dependency via NuGet package).
- register the encoding provider via: CodePagesEncodingProvider.Instance
using AE.Net.Mail; using System.Text; .. { .. Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); ... ImapClient cl = new ImapClient(); // will no longer throw. System.NotSupportedException: No data is available for encoding 1252