PHP Extension
PHP Extension
Example: MailMan.FetchAll method
Demonstrates how to call the FetchAll method.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$success = false;
$success = false;
$mailman = new CkMailMan();
// Setup mailman with POP3 server and login settings...
// ...
// ...
$bundle = new CkEmailBundle();
$keepOnServer = true;
$headersOnly = false;
// numBodyLines only applies if downloading headers-only.
$numBodyLines = 0;
$success = $mailman->FetchAll($keepOnServer,$headersOnly,$numBodyLines,$bundle);
if ($success == false) {
print $mailman->lastErrorText() . "\n";
exit;
}
// ...
// ...
?>