Node.js
Node.js
Transition from Email.GetSignedByCert to Email.LastSignerCert
Provides instructions for replacing deprecated GetSignedByCert method calls with LastSignerCert.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var email = new chilkat.Email();
// ...
// ...
// ------------------------------------------------------------------------
// The GetSignedByCert method is deprecated:
// certObj: Cert
var certObj = email.GetSignedByCert();
if (email.LastMethodSuccess == false) {
console.log(email.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using LastSignerCert.
// Your application creates a new, empty Cert object which is passed
// in the last argument and filled upon success.
var certOut = new chilkat.Cert();
success = email.LastSignerCert(0,certOut);
if (success == false) {
console.log(email.LastErrorText);
return;
}
}
chilkatExample();