PHP ActiveX
PHP ActiveX
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat PHP ActiveX Downloads
<?php
$email = new COM("Chilkat.Email");
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
// dateTimeObj is a Chilkat.CkDateTime
$dateTimeObj = $email->GetDt();
if ($email->LastMethodSuccess == 0) {
print $email->LastErrorText . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using EmailDateStr.
$dt = new COM("Chilkat.CkDateTime");
$dt->SetFromRfc822($email->EmailDateStr);
?>