Sample code for 30+ languages & platforms
Classic ASP

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.

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")

' ...
' ...

xmlBundleStr = "..."

' ------------------------------------------------------------------------
' The LoadXmlString method is deprecated:

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

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using EmailBundle.LoadXmlString.

set bundle = Server.CreateObject("Chilkat.EmailBundle")
success = bundle.LoadXmlString(xmlBundleStr)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( bundle.LastErrorText) & "</pre>"
    Response.End
End If


%>
</body>
</html>