Browse our Products Toggle navigation
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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
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); }
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);
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.
EML
PST
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.