Thank you for writing to us.
Referring to the code sample below for Reading Emails from SharePoint server
, you can see that Aspose.Email is only used to load the message from the Memory stream that contains the MSG data. Thus, Aspose.Email for .NET in this case should not be dependent on the SharePoint server version as the access to the file is managed by the SharePoint SDK. Please let us know if you have further query/inquiry in this regard. We’ll be glad to assist you further.
I would recommend you to please use the latest version of Aspose.Email for .NET 2.9.0
in your applications to avoid any bugs that were found in previous versions.
SPSecurity.CodeToRunElevated elevatedGetSite = new
// Path to the MSG file stored in
Shared Documents folder
SPFile msgFile = web.GetFile("Shared Documents/Test.msg");
// Read the file into a memory stream.
MemoryStream fileStream = new MemoryStream();
byte currentFileContent = msgFile.OpenBinary();
fileStream.Position = 0;
// Create an instance of the
// and pass the memory stream of the
MSG file to it
MailMessage msg = MailMessage.Load(fileStream,