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

Free Support Forum - aspose.com

Attachment count is wrong using Apose.Email


I'm using Aspose.Email for extracting attachments from eml files.

But, in some cases, the attachement count is wrong.
Only one attachment is found in the mail, while mail has more attachments.
Opening mail with Outlook client or Office365 show us that email has several attachments.

Here is the code that I use :
var emlFilename = @"C:\Test\Mail.eml";
using (MailMessage message = MailMessage.Load(emlFilename, new EmlLoadOptions()))
Console.Write("Email has {0} attachments.", message.Attachments.Count);

In attachment to this topic, you'll find a eml file example which makes error.

Thank you for helping me.

Hi Thomas,

Thank you for contacting Aspose support team.

This issue is re-produced and logged under Id: EMAILNET-38666 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

The issues you have found earlier (filed as EMAILNET-38666) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.