Sample code for 30+ languages & platforms
PHP ActiveX

Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd

Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$success = 0;

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

// ...
// ...

$saUidls = new COM("Chilkat.StringArray");
$saUidls->Append('aaa');
$saUidls->Append('bbb');
$saUidls->Append('ccc');

$stUidls = new COM("Chilkat.StringTable");
$stUidls->Append('aaa');
$stUidls->Append('bbb');
$stUidls->Append('ccc');

// ------------------------------------------------------------------------
// The FetchMultipleMime method is deprecated:

// saMime is a Chilkat.StringArray
$saMime = $mailman->FetchMultipleMime($saUidls);
if ($mailman->LastMethodSuccess == 0) {
    print $mailman->LastErrorText . "\n";
    exit;
}

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using FetchMimeBd.

$success = 0;
$bdMime = new COM("Chilkat.BinData");
$numUidls = $stUidls->Count;
$i = 0;
while ($i < $numUidls) {
    $success = $mailman->FetchMimeBd($stUidls->stringAt($i),$bdMime);
    // ...
    // ...

    $i = $i + 1;
}


?>