Sample code for 30+ languages & platforms
Node.js

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

    var mailman = new chilkat.MailMan();

    //  ...
    //  ...

    var xmlBundleStr = "...";

    //  ------------------------------------------------------------------------
    //  The LoadXmlString method is deprecated:

    // bundleObj: EmailBundle
    var bundleObj = mailman.LoadXmlString(xmlBundleStr);
    if (mailman.LastMethodSuccess == false) {
        console.log(mailman.LastErrorText);
        return;
    }

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  Do the equivalent using EmailBundle.LoadXmlString.

    var bundle = new chilkat.EmailBundle();
    success = bundle.LoadXmlString(xmlBundleStr);
    if (success == false) {
        console.log(bundle.LastErrorText);
        return;
    }


}

chilkatExample();