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