Hello Aspose Supporter.
I am using Aspose.Mail version 20.10.0.0 to read msg file and also mails from mailbox using Imap.
I am using example code like that:
AppEnv.SetAsposeLicence();
byte[] bytes = File.ReadAllBytes(@"D:\Developmenet\Casenet\TestMailTicket117630\This is test mail Line Break.msg");
using (MemoryStream stream = new MemoryStream(bytes))
{
stream.Seek(0, SeekOrigin.Begin);
// Create an instance of MapiMessage from file
MailMessage msg = MailMessage.Load(stream);
// Get subject
Console.WriteLine("Subject:" + msg.Subject);
// Get body
Console.WriteLine("Body" + msg.Body);
}
But in msg.body, there are many line break than how original msg looks like in outlook.
See the picture below to understand my problem:
image.png (166.7 KB)
Do you know the reason why? Is there any solution for us to avoid that thing?
I also attach msg file in zip file for you, so you can debug.
This is test mail Line Break.zip (12.5 KB)
Thank you very much for your support
Yours,
Nghia