JavaScript
JavaScript
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var success = false;
success = false;
var mailman = new CkMailMan();
// Setup mailman with POP3 server and login settings...
// ...
// ...
var bundle = new CkEmailBundle();
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;
}
// ...
// ...