Sample code for 30+ languages & platforms
Visual Basic 6.0

Transition from MailMan.GetPop3SslServerCert to MailMan.GetServerCert

Provides instructions for replacing deprecated GetPop3SslServerCert method calls with GetServerCert.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim mailman As New ChilkatMailMan

' ...
' ...

' ------------------------------------------------------------------------
' The GetPop3SslServerCert method is deprecated:

Dim certObj As ChilkatCert
Set certObj = mailman.GetPop3SslServerCert()
If (mailman.LastMethodSuccess = 0) Then
    Debug.Print mailman.LastErrorText
    Exit Sub
End If

' ...
' ...

' ------------------------------------------------------------------------
' 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..
Dim useSmtp As Long
useSmtp = 0

Dim certOut As New ChilkatCert
success = mailman.GetServerCert(useSmtp,certOut)
If (success = 0) Then
    Debug.Print mailman.LastErrorText
    Exit Sub
End If