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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$success = 0;

$success = 0;
$mailman = new COM("Chilkat.MailMan");

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

$bundle = new COM("Chilkat.EmailBundle");
$keepOnServer = 1;
$headersOnly = 0;
//  numBodyLines only applies if downloading headers-only.
$numBodyLines = 0;

$success = $mailman->FetchAll($keepOnServer,$headersOnly,$numBodyLines,$bundle);
if ($success == 0) {
    print $mailman->LastErrorText . "\n";
    exit;
}

//  ...
//  ...

?>