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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
var
success: Integer;
mailman: TChilkatMailMan;
bundle: TChilkatEmailBundle;
keepOnServer: Integer;
headersOnly: Integer;
numBodyLines: Integer;

begin
success := 0;

success := 0;
mailman := TChilkatMailMan.Create(Self);

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

bundle := TChilkatEmailBundle.Create(Self);
keepOnServer := 1;
headersOnly := 0;
//  numBodyLines only applies if downloading headers-only.
numBodyLines := 0;

success := mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle.ControlInterface);
if (success = 0) then
  begin
    Memo1.Lines.Add(mailman.LastErrorText);
    Exit;
  end;

//  ...
//  ...