Rank: Newbie
Groups: Registered
Joined: 12/21/2021(UTC)
Posts: 2
Location: CDMX
Thanks: 1 times
I'm required to use .MSG extension as my organization's previous developments are not compatible with .EML files. I've been trying to save mails by using SaveAsOMSG method, however I can't get past the following error message: "No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method." Does anybody know how to achieve it? Thanks in advance.
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,152
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
It seems that you're using .NET Core: You need to install the package from nuget, Install-Package System.Text.Encoding.CodePages -Version 5.0.0 Then add the following code before you parse the email. Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
1 user thanked ivan for this useful post.
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.