Sample code for 30+ languages & platforms
C#

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat C# Downloads

C#
bool success = false;

success = false;
Chilkat.MailMan mailman = new Chilkat.MailMan();

// Setup mailman with POP3 server and login settings...
// ...
// ...

Chilkat.EmailBundle bundle = new Chilkat.EmailBundle();
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) {
    Debug.WriteLine(mailman.LastErrorText);
    return;
}

// ...
// ...