Classic ASP
Classic ASP
Transition from Email.GetSignedByCert to Email.LastSignerCert
Provides instructions for replacing deprecated GetSignedByCert method calls with LastSignerCert.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")
' ...
' ...
' ------------------------------------------------------------------------
' The GetSignedByCert method is deprecated:
' certObj is a Chilkat.Cert
Set certObj = email.GetSignedByCert()
If (email.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using LastSignerCert.
' Your application creates a new, empty Cert object which is passed
' in the last argument and filled upon success.
set certOut = Server.CreateObject("Chilkat.Cert")
success = email.LastSignerCert(0,certOut)
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
%>
</body>
</html>