Exception While Loading with MailMessage.load function in Aspose.Email

Hi Team

I have 1 issue while I am trying to load .eml file with

f_Objmailmessage = MailMessage.Load(f_tmpEmlPath, new EmlLoadOptions());
f_tmpEmlPath is my .eml path getting this error "BEGIN" property should be at the first place in the properties
& not able to load the eml
pleas let me know why exception is showing through aspose.email.dll

please refer attached eml for refrance

Thanks & Regards

Raees04c42cbf-9679-495f-95c9-057c7a8391c4da54d5cf-6b8b-456b-aa94-ccaa2ac4756a_60030.zip (1.6 KB)

Hi @RaeesBeg,

Thank you for reporting your case.

The content-type: text/calendar in the message is incorrect. So, when parsing the message, Aspose.Email tries to process the content as an iCalendar format.

Change the content-type to text/plain, then the message will be loaded without exceptions.

I hope this will help. Please, spare a minute to share your feedback.

If there’s something else I can help you with, feel free to ask.