Node.js
Node.js
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var mailman = new chilkat.MailMan();
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
var emailHeader = new chilkat.Email();
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
// fullEmailObj: Email
var fullEmailObj = mailman.GetFullEmail(emailHeader);
if (mailman.LastMethodSuccess == false) {
console.log(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchFull.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
var fullEmail = new chilkat.Email();
success = mailman.FetchFull(emailHeader,fullEmail);
if (success == false) {
console.log(mailman.LastErrorText);
return;
}
}
chilkatExample();