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