Aspose.Network for .NET v3.6.1.0 Released

What's New

  • Provide format template for customizing the file format convertion from msg files to mht files. More format templates are supported in MhtMessageFormatter class, which will provide more flexibility for .Net developers to customize the output of mht format files.

Sample:

MailMessage mail = MailMessage.Load(file, MessageFormat.Msg);
MhtMessageFormatter f = new MhtMessageFormatter();
f.FormFormat = "FROM:{0}
";
f.SentFormat = "SENT:{0}
";
f.SubjectFormat = "SUBJECT:{0}
";
f.ToFormat = "TO:{0}
";
f.CcFormat= "CC:{0}
";
f.AttachmentFormat = "ATT:{0}
";
mail.Save(@"D:\codestore\Aspose.network\phone2.mht", MessageFormat.Mht, f);

Fixes

  • 3871 - Cannot extract alternative views in some EML files.
  • 3869 - From address lost when convert to mht format files.