C++
C++
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat C++ Downloads
#include <CkMailMan.h>
#include <CkEmailBundle.h>
void ChilkatSample(void)
{
bool success = false;
success = false;
CkMailMan mailman;
// Setup mailman with POP3 server and login settings...
// ...
// ...
CkEmailBundle 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) {
std::cout << mailman.lastErrorText() << "\r\n";
return;
}
// ...
// ...
}