Sample code for 30+ languages & platforms
Delphi DLL Requires Chilkat v11.0.0+

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Delphi DLL Downloads

Delphi DLL
var
success: Boolean;
mailman: HCkMailMan;
bundle: HCkEmailBundle;
keepOnServer: Boolean;
headersOnly: Boolean;
numBodyLines: Integer;

begin
success := False;

success := False;
mailman := CkMailMan_Create();

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

bundle := CkEmailBundle_Create();
keepOnServer := True;
headersOnly := False;
//  numBodyLines only applies if downloading headers-only.
numBodyLines := 0;

success := CkMailMan_FetchAll(mailman,keepOnServer,headersOnly,numBodyLines,bundle);
if (success = False) then
  begin
    Memo1.Lines.Add(CkMailMan__lastErrorText(mailman));
    Exit;
  end;

//  ...
//  ...

CkMailMan_Dispose(mailman);
CkEmailBundle_Dispose(bundle);