Sample code for 30+ languages & platforms
C#

Transition from MailMan.LoadMbx to MailMan.LoadMbxFile

Provides instructions for replacing deprecated LoadMbx method calls with LoadMbxFile.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.MailMan mailman = new Chilkat.MailMan();

// ...
// ...

string filePath = "c:/test/example.mbx";

// ------------------------------------------------------------------------
// The LoadMbx method is deprecated:

Chilkat.EmailBundle bundleObj = mailman.LoadMbx(filePath);
if (mailman.LastMethodSuccess == false) {
    Debug.WriteLine(mailman.LastErrorText);
    return;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using LoadMbxFile.
// Your application creates a new, empty EmailBundle object which is passed 
// in the last argument and filled upon success.

Chilkat.EmailBundle bundleOut = new Chilkat.EmailBundle();
success = mailman.LoadMbxFile(filePath,bundleOut);
if (success == false) {
    Debug.WriteLine(mailman.LastErrorText);
    return;
}