Sample code for 30+ languages & platforms
Classic ASP

Example: MailMan.FetchAll method

Demonstrates how to call the FetchAll method.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

success = 0
set mailman = Server.CreateObject("Chilkat.MailMan")

' Setup mailman with POP3 server and login settings...
' ...
' ...

set bundle = Server.CreateObject("Chilkat.EmailBundle")
keepOnServer = 1
headersOnly = 0
' numBodyLines only applies if downloading headers-only.
numBodyLines = 0

success = mailman.FetchAll(keepOnServer,headersOnly,numBodyLines,bundle)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
    Response.End
End If

' ...
' ...

%>
</body>
</html>