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

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oEmail = ObjCreate("Chilkat.Email")
$oCert = ObjCreate("Chilkat.Cert")

;  ...
;  ...

;  ------------------------------------------------------------------------
;  The FindIssuer method is deprecated:

Local $oCertObj = $oEmail.FindIssuer($oCert)
If ($oEmail.LastMethodSuccess = False) Then
    ConsoleWrite($oEmail.LastErrorText & @CRLF)
    Exit
EndIf

;  ...
;  ...

;  ------------------------------------------------------------------------
;  Do the equivalent using Cert.GetIssuer.
;  Your application creates a new, empty Cert object which is passed 
;  in the last argument and filled upon success.

$oIssuerCert = ObjCreate("Chilkat.Cert")
$bSuccess = $oCert.GetIssuer($oIssuerCert)
If ($bSuccess = False) Then
    ConsoleWrite($oEmail.LastErrorText & @CRLF)
    Exit
EndIf