Sample code for 30+ languages & platforms
Xojo Plugin

Transition from MailMan.GetSmtpSslServerCert to MailMan.GetServerCert

Provides instructions for replacing deprecated GetSmtpSslServerCert method calls with GetServerCert.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim mailman As New Chilkat.MailMan

// ...
// ...

// ------------------------------------------------------------------------
// The GetSmtpSslServerCert method is deprecated:

Dim certObj As Chilkat.Cert
certObj = mailman.GetSmtpSslServerCert()
If (mailman.LastMethodSuccess = False) Then
    System.DebugLog(mailman.LastErrorText)
    Return
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 SMTP email server certificate..
Dim useSmtp As Boolean
useSmtp = True

Dim certOut As New Chilkat.Cert
success = mailman.GetServerCert(useSmtp,certOut)
If (success = False) Then
    System.DebugLog(mailman.LastErrorText)
    Return
End If