PHP ActiveX
PHP ActiveX
Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.Chilkat PHP ActiveX Downloads
<?php
$success = 0;
$mailman = new COM("Chilkat.MailMan");
// ...
// ...
$xmlBundleStr = '...';
// ------------------------------------------------------------------------
// The LoadXmlString method is deprecated:
// bundleObj is a Chilkat.EmailBundle
$bundleObj = $mailman->LoadXmlString($xmlBundleStr);
if ($mailman->LastMethodSuccess == 0) {
print $mailman->LastErrorText . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using EmailBundle.LoadXmlString.
$bundle = new COM("Chilkat.EmailBundle");
$success = $bundle->LoadXmlString($xmlBundleStr);
if ($success == 0) {
print $bundle->LastErrorText . "\n";
exit;
}
?>