Browse our Products

Aspose.Email for .NET 25.7 Release Notes

All Changes

KeySummaryCategory
EMAILNET-41531Extract HTML Body image external resources as attachments (HTML, MHTML conversion)Enhancement
EMAILNET-41577MSG to HTML: Page break is inserted in the resultant fileBug
EMAILNET-41596Images are not correctly embedded when saving MSG to HTMLBug
EMAILNET-41602GraphClient ListFolders() fails in GCC environment: “Stream does not support seek operations” ExceptionBug
EMAILNET-41595Wrong Content-Id of MailMessage AttachmentsBug
EMAILNET-41611Aspose.Email incorrectly classifies attached image as LinkedResource instead of AttachmentBug
EMAILNET-41609Exception key not present in dictionary when loading ICS fileBug
EMAILNET-41591Index out of range exception thrown when providing custom attachment icon streamBug

New Enhancements

Extract HTML Body Resources

Aspose.Email now supports extracting externally linked image resources from the HTML body and embedding them in HTML output. This enhancement helps preserve the original appearance of messages with linked content.

New Option:

  • HtmlSaveOptions.ExtractHTMLBodyResourcesAsAttachments When set to true, linked images and other resources in the HTML body are extracted and embeded.

Usage Example:

// Load the email message
var mailMessage = MailMessage.Load("input.eml");

// Set options to extract external HTML resources
var options = new HtmlSaveOptions();
options.ExtractHTMLBodyResourcesAsAttachments = true;

// Optional: Handle resource rendering events
options.ResourceHtmlRendering += (sender, e) =>
{
    Console.WriteLine(e.PathToResourceFile + " " + ((Attachment)sender).ContentId);
};

// Save the HTML representation of the email
mailMessage.Save("output.html", options);