Node.js
Node.js
Transition from MailMan.LoadEml to Email.LoadEml
Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var mailman = new chilkat.MailMan();
// ...
// ...
var filePath = "c:/dir/example.eml";
// ------------------------------------------------------------------------
// The MailMan.LoadEml method is deprecated:
// emailObj: Email
var emailObj = mailman.LoadEml(filePath);
if (mailman.LastMethodSuccess == false) {
console.log(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using Email.LoadEml.
var email = new chilkat.Email();
success = email.LoadEml(filePath);
if (success == false) {
console.log(email.LastErrorText);
return;
}
}
chilkatExample();