Sample code for 30+ languages & platforms
Classic ASP

Transition from MailMan.LoadMbx to MailMan.LoadMbxFile

Provides instructions for replacing deprecated LoadMbx method calls with LoadMbxFile.

Chilkat Classic ASP Downloads

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

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

' ...
' ...

filePath = "c:/test/example.mbx"

' ------------------------------------------------------------------------
' The LoadMbx method is deprecated:

' bundleObj is a Chilkat.EmailBundle
Set bundleObj = mailman.LoadMbx(filePath)
If (mailman.LastMethodSuccess = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
    Response.End
End If

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using LoadMbxFile.
' Your application creates a new, empty EmailBundle object which is passed 
' in the last argument and filled upon success.

set bundleOut = Server.CreateObject("Chilkat.EmailBundle")
success = mailman.LoadMbxFile(filePath,bundleOut)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
    Response.End
End If


%>
</body>
</html>