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

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Perl Downloads

Perl
use chilkat();

$success = 0;

$success = 0;
$mailman = chilkat::CkMailMan->new();

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

$bundle = chilkat::CkEmailBundle->new();
$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() . "\r\n";
    exit;
}

#  ...
#  ...