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

Aspose.Email for .NET

Convert PST to MBOX via C#

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

.NET API for PST to MBOX conversion without needing Outlook

In order to convert PST to MBOX, 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 PST to MBOX via C#

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

  • Load PST file with PersonalStorage.FromFile.
  • Call the SaveAs method having two parameters.
  • Output MBOX file and FileFormat.Mbox as parameters.
  • MBOX 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 PST file with PersonalStorage.FromFile.
  • Call the SaveAs method having two parameters.
  • Output MBOX file and FileFormat.Mbox as parameters.
  • MBOX file will be saved at the specified path.
 

Command

var options = new MailConversionOptions();

using (var writer = new MboxrdStorageWriter("output.mbox", false)){

	using (var pst = PersonalStorage.FromFile("sourceFile.pst")){	

		foreach (FolderInfo folder in pst.RootFolder.GetSubFolders()){	
			foreach (var msg in folder.EnumerateMapiMessages()){
				writer.WriteMessage(msg.ToMailMessage(options));
			}
		}
	}
}  

 
  •  

    Free App to Convert PST to MBOX

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

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

    How to Convert PST to MBOX 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. ‎

    PST What is PST File Format

    Files with .PST extension represent Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information. User information is stored in folders of different types that include emails, calendar items, notes, contacts, and several other file formats. PST files are used for archiving emailing data offline that can be later loaded and viewed in various applications.

    Read More

    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
     

    Other Supported Conversions

    You can also convert PST into many other file formats including few listed below.

    PST TO EML (Outlook Email Messages)
    PST TO EMLX (Apple EMLX Format)
    PST TO HTML (Hyper Text Markup Language)
    PST TO ICS (iCalendar)
    PST TO MHTML (Web Page Archive Format)
    PST TO MSG (Outlook & Exchange Format)
    PST TO OFT (Outlook Email Templates)
    PST TO OST (Offline Storage Files)
    PST TO VCF (Virtual Card Format)