PNG JPG BMP TIFF EMLX
Aspose.Email  for .NET

Merge EMLX Formats in C#

Native and high performance EMLX message merger using server-side Aspose.Email for .NET APIs, without the use of any software like Microsoft or Open Office, Adobe PDF.

How to Merge EMLX File Using C#

In order to merge EMLX file, we’ll use Aspose.Email for .NET API which is a feature-rich, powerful and easy to use document manipulation and merging API for C# platform. Open NuGet package manager, search for Aspose.Email and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Email

Steps for Merging EMLX Files in C#

A basic document merging and concatenating with

Aspose.Email for .NET

APIs can be done with just few lines of code.

  1. Load all the EMLX files with full path.
  2. Make one document as the base file
  3. Call the relevant method for concatenating and merging files one by one.
  4. Call the Save() method and pass the file name (full path) and format (EMLX) as a parameter.
  5. Now you can open and use the EMLX file in Microsoft Office, Adobe PDF or any other compatible program.

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Aspose.Email for .NET DLL referenced in your project - Install from NuGet using the Download button above
 

Merge EMLX Files - C#

string dataDir = RunExamples.GetDataDir_Outlook();
    string dst = dataDir + "Sub.pst";
    totalAdded = 0;
    using (PersonalStorage personalStorage = PersonalStorage.FromFile(dst)){
    // The events subscription is an optional step for the tracking process only.
    personalStorage.StorageProcessed += PstMerge_OnStorageProcessed;
    personalStorage.ItemMoved += PstMerge_OnItemMoved;
    // Merges with the pst files that are located in separate folder. 
    personalStorage.MergeWith(Directory.GetFiles(dataDir + @"MergePST\"));
    Console.WriteLine("Total messages added: {0}", totalAdded);
    }  

        
 
  • Aspose.Email is a Microsoft Outlook and Thunderbird formats parsing solution. One can easily create, manipulate, convert email and storage formats such as MSG, EMLX, EML and MHT. Handling of email attachments, customization of message headers and implementation of different network protocols like POP3, IMAP & SMTP to send & receive emails is much easier. Its a standalone API and does not require Microsoft Outlook or any other software installation.

    Online EMLX Merger Live Demos