HTML JPG PDF XML MBOX
Aspose.Email  for .NET
EML

Aspose.Email for .NET

Convert MBOX to EML via C#

.NET API for MBOX to EML conversion without needing Outlook® or Thunderbird®.

.NET API for MBOX to EML conversion without needing Outlook

In order to convert MBOX to EML, we’ll use Aspose.Email for .NET API which is a feature-rich, powerful and easy to use document manipulation and conversion 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.

Aspose.Email


PM> Install-Package Aspose.Email

Steps to Convert MBOX to EML via C#

The aspose.email.dll makes it easy for the developers to load & convert MBOX files to EML in just a few lines of code.

  • Load MBOX file with Aspose.Email.MailMessage.Load.
  • Call the Save method.
  • Pass the output file path with EML file extension.
  • EML file will be saved at the specified path.

System Requirements

Aspose.Email for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Load MBOX file with Aspose.Email.MailMessage.Load.
  • Call the Save method.
  • Pass the output file path with EML file extension.
  • EML file will be saved at the specified path.
 

Command

using (var reader = new MboxrdStorageReader("sourcFile.mbox", false)){
	for (int i = 0; i < reader.GetTotalItemsCount(); i++){
		using (var message = reader.ReadNextMessage()){
			message.Save("outputMessage"+i+".eml", SaveOptions.DefaultEml);
		}
	}
}  

 
  •  

    Free App to Convert MBOX to EML

    Check our live demos for MBOX to EML conversion with following benefits.

      No need to download or setup anything.
      No need to write any code.
      Just upload your MBOX file and hit the "Convert" button.
      You will instantly get the download link for resultant EML file.

    How to Convert MBOX to EML Using C#

    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. ‎

    MBOX What is MBOX File Format

    MBox file format is a generic term that represents a container for collection of electronic mail messages. The messages are stored inside the container along with their attachments. Messages from an entire folder are saved in a single database file and new messages are appended to the end of the file. Numerous applications and API provide support for MBox file format such as Apple Mail and Mozilla Thunderbird.

    Read More

    eml What is eml File Format

    EML file format represents email messages saved using Outlook and other relevant applications. Almost all emailing clients support this file format for its compliance with RFC-822 Internet Message Format Standard. Microsoft Outlook is the default software for opening EML message types. EML files can be used for saving to disc as well as sending out to recipients using communication protocols.

    Read More