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