Sample code for 30+ languages & platforms
Node.js

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

    var email = new chilkat.Email();

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetLinkedDomains method is deprecated:

    // sa: StringArray
    var sa = email.GetLinkedDomains();
    if (email.LastMethodSuccess == false) {
        console.log(email.LastErrorText);
        return;
    }

    //  ...
    //  ...

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

    var st = new chilkat.StringTable();
    success = email.LinkedDomains(st);
    if (success == false) {
        console.log(email.LastErrorText);
        return;
    }


}

chilkatExample();