We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Attachments not being detected - .NET

I am trying to print the attachment count but it’s saying the count is 0 when the .msg file has an attachment.

My code is something like the following:
string filePath = “C:\Path\To\File\test email.msg”;
MapiMessage message = MapiMessage.Load(filePath);

Here is the .msg file I am passingtest email.zip (955.6 KB)



We have tested the scenario using the latest version of Aspose.Email for .NET 22.5 and have not found the shared issue. So, please use Aspose.Email for .NET 22.5.

In case you are not using the license, please get 30 days temporary license and apply it. Please read the following article about applying license.
Applying a License