Sample code for 30+ languages & platforms
AutoIt

Transition from MailMan.LoadEml to Email.LoadEml

Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oMailman = ObjCreate("Chilkat.MailMan")

; ...
; ...

Local $sFilePath = "c:/dir/example.eml"

; ------------------------------------------------------------------------
; The MailMan.LoadEml method is deprecated:

Local $oEmailObj = $oMailman.LoadEml($sFilePath)
If ($oMailman.LastMethodSuccess = False) Then
    ConsoleWrite($oMailman.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using Email.LoadEml.

$oEmail = ObjCreate("Chilkat.Email")
$bSuccess = $oEmail.LoadEml($sFilePath)
If ($bSuccess = False) Then
    ConsoleWrite($oEmail.LastErrorText & @CRLF)
    Exit
EndIf