AutoIt
AutoIt
Transition from MailMan.GetPop3SslServerCert to MailMan.GetServerCert
Provides instructions for replacing deprecated GetPop3SslServerCert method calls with GetServerCert.Chilkat AutoIt Downloads
Local $bSuccess = False
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
; ------------------------------------------------------------------------
; The GetPop3SslServerCert method is deprecated:
Local $oCertObj = $oMailman.GetPop3SslServerCert()
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 POP3 email server certificate..
Local $bUseSmtp = False
$oCertOut = ObjCreate("Chilkat.Cert")
$bSuccess = $oMailman.GetServerCert($bUseSmtp,$oCertOut)
If ($bSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf