PHP ActiveX
PHP ActiveX
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat PHP ActiveX Downloads
<?php
$success = 0;
$mailman = new COM("Chilkat.MailMan");
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
$emailHeader = new COM("Chilkat.Email");
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
// fullEmailObj is a Chilkat.Email
$fullEmailObj = $mailman->GetFullEmail($emailHeader);
if ($mailman->LastMethodSuccess == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchFull.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
$fullEmail = new COM("Chilkat.Email");
$success = $mailman->FetchFull($emailHeader,$fullEmail);
if ($success == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
?>