Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.Email for .NET 22.2.0

Download  Support Forum 

File Details

  • Downloads:
  • 18
  • File Size:
  • 51.7 MB
  • Posted By:
  • DmitryS
  • Views:
  • 60
  • Date Added:
  • 2/28/2022

File Details

Better TNEF Handling via API

Previously in some instances, the TNEF (Transport Neutral Encapsulation Format) email attachment format was having issue with plain-text body. This issue has been resolved in the current version of the API.

// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Email();

MsgLoadOptions options = new MsgLoadOptions();
options.PreserveTnefAttachments = true;
MailMessage eml = MailMessage.Load(dataDir + "EmbeddedImage1.msg", options);
foreach (Attachment attachment in eml.Attachments)
{
    Console.WriteLine(attachment.Name);
}

Reference Attachment Support

Support for the reference attachments has been implemented in the API. If you want to have a better control over the access of an attachment a reference attachment can be preferable in place of the local file attachments.

var eml = MailMessage.Load("fileName");

var refAttach = new ReferenceAttachment("https://[attach_uri]")
{
    Name = "Document.docx",
    ProviderType = AttachmentProviderType.OneDrivePro,
    PermissionType = AttachmentPermissionType.AnyoneCanEdit
};

eml.Attachments.Add(refAttach);

Improved Support for EML to PST Conversion

In some previous instances it was observed that when EML files were converted from PST, the reference attachments of the emails were not being displayed. This issue has now been resolved.

The following C# code snippet demonstrates simple EML to PST format conversion via API:

using (var message = MailMessage.Load("sourceFile.eml")){
    using (var personalStorage = PersonalStorage.Create("outputFile.pst", FileFormatVersion.Unicode)){

        var inbox = personalStorage.RootFolder.AddSubFolder("Inbox");

        inbox.AddMessage(MapiMessage.FromMailMessage(message, MapiConversionOptions.UnicodeFormat));
	}
}

For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.Email for .NET 22.2 Release Notes.

 English