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

Free Support Forum - aspose.com

EML body not read if subject is invalid

When processing an EML file where the subject line is split incorrectly between 2 lines, the body of the email is not being read. There are also no errors/warnings to let us know that the body was not processed so it appears that the email was blank when in fact it has content. Testing this in Outlook reveals that Outlook skips the 2nd line of the subject but correctly reads in the remainder of the email.

Sample Code:
string filename; // set to attached file location
// Set up the Aspose options for reading in EML files
var opts = new AsposeMail.EmlLoadOptions
PreserveTnefAttachments = true,
AsposeMail.MailMessage mailMessage = AsposeMail.MailMessage.Load(filename);
AsposeMapi.MapiMessage msg = AsposeMapi.MapiMessage.FromMailMessage(mailMessage);

// Check message body here
// For attached document, the message body is blank which is incorrect

Attached .eml file
PageBreakSubject.zip (553 Bytes)


We have tried to reproduce the issue at our end. While investigating the issue, it was found that MS outlook shows only a single line subject with information message that “We removed extra line breaks from this message”. Furthermore we are unable to read the body text using Aspose.Email. The issue has been logged into our system with ID EMAILNET-38806 along with the details for further investigation by our product team. We will update you here once there is any information or a fix version available in this regard.


This issue has been fixed in the latest release of Aspose.Email for .NET 17.9. Please let us know if we can be of any additional help to you in this regard.