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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat PHP Downloads

Chilkat2 PHP
<?php

use Chilkat2\EmailBundle;
use Chilkat2\MailMan;

$success = false;

$success = false;
$mailman = new MailMan();

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

$bundle = new EmailBundle();
$keepOnServer = true;
$headersOnly = false;
// numBodyLines only applies if downloading headers-only.
$numBodyLines = 0;

try {
    $mailman->FetchAll($keepOnServer, $headersOnly, $numBodyLines, $bundle);
} catch (\Chilkat2\Exception $e) {
    echo $e->getMessage(), "\n";
    exit;
}

// ...
// ...