Classic ASP
Classic ASP
Transition from MailMan.FetchMultipleHeaders to MailMan.FetchUidlSet
Provides instructions for replacing deprecated FetchMultipleHeaders method calls with FetchUidlSet.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set mailman = Server.CreateObject("Chilkat.MailMan")
' ...
' ...
set saUidls = Server.CreateObject("Chilkat.StringArray")
success = saUidls.Append("aaa")
success = saUidls.Append("bbb")
success = saUidls.Append("ccc")
set stUidls = Server.CreateObject("Chilkat.StringTable")
success = stUidls.Append("aaa")
success = stUidls.Append("bbb")
success = stUidls.Append("ccc")
numBodyLines = 5
' ------------------------------------------------------------------------
' The FetchMultipleHeaders method is deprecated:
' bundleObj is a Chilkat.EmailBundle
Set bundleObj = mailman.FetchMultipleHeaders(saUidls,numBodyLines)
If (mailman.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using FetchUidlSet.
' Your application creates a new, empty EmailBundle object which is passed
' in the last argument and filled upon success.
headersOnly = 1
set bundleOut = Server.CreateObject("Chilkat.EmailBundle")
success = mailman.FetchUidlSet(stUidls,headersOnly,numBodyLines,bundleOut)
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
Response.End
End If
%>
</body>
</html>