Node.js
Node.js
Transition from MailMan.LoadMbx to MailMan.LoadMbxFile
Provides instructions for replacing deprecated LoadMbx method calls with LoadMbxFile.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var mailman = new chilkat.MailMan();
// ...
// ...
var filePath = "c:/test/example.mbx";
// ------------------------------------------------------------------------
// The LoadMbx method is deprecated:
// bundleObj: EmailBundle
var bundleObj = mailman.LoadMbx(filePath);
if (mailman.LastMethodSuccess == false) {
console.log(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.
var bundleOut = new chilkat.EmailBundle();
success = mailman.LoadMbxFile(filePath,bundleOut);
if (success == false) {
console.log(mailman.LastErrorText);
return;
}
}
chilkatExample();