Classic ASP
Classic ASP
Transition from Email.FindIssuer to Cert.GetIssuer
Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set email = Server.CreateObject("Chilkat.Email")
set cert = Server.CreateObject("Chilkat.Cert")
' ...
' ...
' ------------------------------------------------------------------------
' The FindIssuer method is deprecated:
' certObj is a Chilkat.Cert
Set certObj = email.FindIssuer(cert)
If (email.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using Cert.GetIssuer.
' Your application creates a new, empty Cert object which is passed
' in the last argument and filled upon success.
set issuerCert = Server.CreateObject("Chilkat.Cert")
success = cert.GetIssuer(issuerCert)
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
%>
</body>
</html>