Classic ASP
Classic ASP
Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText
Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText.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")
' ...
' ...
xmlStr = "..."
' ------------------------------------------------------------------------
' The LoadXmlEmailString method is deprecated:
' emailObj is a Chilkat.Email
Set emailObj = mailman.LoadXmlEmailString(xmlStr)
If (mailman.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( mailman.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using Email.SetFromXmlText.
set email = Server.CreateObject("Chilkat.Email")
success = email.SetFromXmlText(xmlStr)
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
%>
</body>
</html>