We are pleased to announce the release of Aspose.Email for .NET 1.1. In this version, we have added support for creating a new PST file and adding/importing email messages to a PST. The reading PST feature has been available for a while and we’ve been working on the modification feature but this is the first version with which you can create your own PST files, add new folders and messages.
The API is very simple. Here is a sample code snippet for creating a new PST and adding a new folder and message to it in C#.
// Create new PST PersonalStorage pst = PersonalStorage.Create(@"d:\emails\New.pst", FileFormatVersion.Unicode); // Add new folder "Inbox" pst.RootFolder.AddSubFolder("Inbox"); // Select the "Inbox" folder FolderInfo inboxFolder = pst.RootFolder.GetSubFolder("Inbox"); // Add some messages to "Inbox" folder inboxFolder.AddMessage(MapiMessage.FromFile("d:\emails\message 1.msg")); inboxFolder.AddMessage(MapiMessage.FromFile("d:\emails\message 2.msg"));
Besides these new features, we have also added some other features and fixes. For release notes and downloads, please visit https://downloads.aspose.com/email/net.