Unicode C++
Unicode C++
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat Unicode C++ Downloads
#include <CkMailManW.h>
#include <CkEmailBundleW.h>
void ChilkatSample(void)
{
bool success = false;
success = false;
CkMailManW mailman;
// Setup mailman with POP3 server and login settings...
// ...
// ...
CkEmailBundleW bundle;
bool keepOnServer = true;
bool headersOnly = false;
// numBodyLines only applies if downloading headers-only.
int numBodyLines = 0;
success = mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle);
if (success == false) {
wprintf(L"%s\n",mailman.lastErrorText());
return;
}
// ...
// ...
}