Visual FoxPro
Visual FoxPro
Transition from MailMan.GetPop3SslServerCert to MailMan.GetServerCert
Provides instructions for replacing deprecated GetPop3SslServerCert method calls with GetServerCert.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loMailman
LOCAL loCertObj
LOCAL lnUseSmtp
LOCAL loCertOut
lnSuccess = 0
loMailman = CreateObject('Chilkat.MailMan')
* ...
* ...
* ------------------------------------------------------------------------
* The GetPop3SslServerCert method is deprecated:
loCertObj = loMailman.GetPop3SslServerCert()
IF (loMailman.LastMethodSuccess = 0) THEN
? loMailman.LastErrorText
RELEASE loMailman
CANCEL
ENDIF
* ...
* ...
RELEASE loCertObj
* ------------------------------------------------------------------------
* 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..
lnUseSmtp = 0
loCertOut = CreateObject('Chilkat.Cert')
lnSuccess = loMailman.GetServerCert(lnUseSmtp,loCertOut)
IF (lnSuccess = 0) THEN
? loMailman.LastErrorText
RELEASE loMailman
RELEASE loCertOut
CANCEL
ENDIF
RELEASE loMailman
RELEASE loCertOut