PHP Extension
PHP Extension
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$success = false;
$mailman = new CkMailMan();
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
$emailHeader = new CkEmail();
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
// fullEmailObj is a CkEmail
$fullEmailObj = $mailman->GetFullEmail($emailHeader);
if ($mailman->get_LastMethodSuccess() == false) {
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 CkEmail();
$success = $mailman->FetchFull($emailHeader,$fullEmail);
if ($success == false) {
print $mailman->lastErrorText() . "\n";
exit;
}
?>