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

Transition from MailMan.GetSmtpSslServerCert to MailMan.GetServerCert

Provides instructions for replacing deprecated GetSmtpSslServerCert method calls with GetServerCert.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oMailman = ObjCreate("Chilkat.MailMan")

;  ...
;  ...

;  ------------------------------------------------------------------------
;  The GetSmtpSslServerCert method is deprecated:

Local $oCertObj = $oMailman.GetSmtpSslServerCert()
If ($oMailman.LastMethodSuccess = False) Then
    ConsoleWrite($oMailman.LastErrorText & @CRLF)
    Exit
EndIf

;  ...
;  ...

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

;  We want the SMTP email server certificate..
Local $bUseSmtp = True

$oCertOut = ObjCreate("Chilkat.Cert")
$bSuccess = $oMailman.GetServerCert($bUseSmtp,$oCertOut)
If ($bSuccess = False) Then
    ConsoleWrite($oMailman.LastErrorText & @CRLF)
    Exit
EndIf