(AutoIt) Transition from MailMan.LoadXmlFile to EmailBundle.LoadXml
Provides instructions for replacing deprecated LoadXmlFile method calls with EmailBundle.LoadXml. Note: This example requires Chilkat v11.0.0 or greater.
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
Local $sFilePath = "c:/example/emailBundle.xml"
; ------------------------------------------------------------------------
; The LoadXmlFile method is deprecated:
Local $oBundleObj = $oMailman.LoadXmlFile($sFilePath)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using EmailBundle.LoadXml.
$oBundle = ObjCreate("Chilkat.EmailBundle")
Local $bSuccess = $oBundle.LoadXml($sFilePath)
If ($bSuccess = False) Then
ConsoleWrite($oBundle.LastErrorText & @CRLF)
Exit
EndIf
|