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

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $success = 0;
my $mailman = Chilkat2::MailMan->new;

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

my $bundle = Chilkat2::EmailBundle->new;
my $keepOnServer = 1;
my $headersOnly = 0;
# numBodyLines only applies if downloading headers-only.
my $numBodyLines = 0;

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

# ...
# ...