Browse our Products

Aspose.Email for .NET 24.1 Release Notes

All Changes

KeySummaryCategory
EMAILNET-41250Replace “.” on “_” in resource folder name while saving message to html with resources.Enhancement
EMAILNET-41260Error when trying to parse relative recurrence rule from ical fileBug
EMAILNET-41262Incorrect reading of UTF-7 encoded emailsBug
EMAILNET-41248Attachment Name and Extension is nullBug
EMAILNET-41247Wrong MHtml produced from specific MSG fileBug

New Enhancements

Fixed Resource Folder Naming Scheme for Email Message HTML Saving

In response to user feedback we have updated the resource folder naming convention. When saving email messages into HTML files with associated resources (e.g. images), the Aspose.Email will now utilize the [html file name]_files scheme instead of the [html file name].files convention. This revised naming scheme ensures better compatibility.

Code sample

var msg = MapiMessage.Load(sourceFileName);

var htmlSaveOptions = new HtmlSaveOptions
{
    ResourceRenderingMode = ResourceRenderingMode.SaveToFile,
    UseRelativePathToResources = true
};

msg.Save(Path.Combine("target.html"), htmlSaveOptions);

If the HTML file is named “target.html,” the associated resource default folder will be named “target_files.”