(AutoIt) Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText
Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText. Note: This example requires Chilkat v11.0.0 or greater.
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
Local $sXmlStr = "..."
; ------------------------------------------------------------------------
; The LoadXmlEmailString method is deprecated:
Local $oEmailObj = $oMailman.LoadXmlEmailString($sXmlStr)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using Email.SetFromXmlText.
$oEmail = ObjCreate("Chilkat.Email")
Local $bSuccess = $oEmail.SetFromXmlText($sXmlStr)
If ($bSuccess = False) Then
ConsoleWrite($oEmail.LastErrorText & @CRLF)
Exit
EndIf
|