Node.js
Node.js
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
success = false;
var mailman = new chilkat.MailMan();
// Setup mailman with POP3 server and login settings...
// ...
// ...
var bundle = new chilkat.EmailBundle();
var keepOnServer = true;
var headersOnly = false;
// numBodyLines only applies if downloading headers-only.
var numBodyLines = 0;
success = mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle);
if (success == false) {
console.log(mailman.LastErrorText);
return;
}
// ...
// ...
}
chilkatExample();