Sample code for 30+ languages & platforms
AutoIt Requires Chilkat v11.0.0+

Transition from MailMan.LoadXmlFile to EmailBundle.LoadXml

Provides instructions for replacing deprecated LoadXmlFile method calls with EmailBundle.LoadXml.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$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")
$bSuccess = $oBundle.LoadXml($sFilePath)
If ($bSuccess = False) Then
    ConsoleWrite($oBundle.LastErrorText & @CRLF)
    Exit
EndIf