Sample code for 30+ languages & platforms
VBScript Requires Chilkat v11.0.0+

Transition from MailMan.LoadXmlFile to EmailBundle.LoadXml

Provides instructions for replacing deprecated LoadXmlFile method calls with EmailBundle.LoadXml.

Chilkat VBScript Downloads

VBScript
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

success = 0

set mailman = CreateObject("Chilkat.MailMan")

'  ...
'  ...

filePath = "c:/example/emailBundle.xml"

'  ------------------------------------------------------------------------
'  The LoadXmlFile method is deprecated:

' bundleObj is a Chilkat.EmailBundle
Set bundleObj = mailman.LoadXmlFile(filePath)
If (mailman.LastMethodSuccess = 0) Then
    outFile.WriteLine(mailman.LastErrorText)
    WScript.Quit
End If

'  ...
'  ...

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

set bundle = CreateObject("Chilkat.EmailBundle")
success = bundle.LoadXml(filePath)
If (success = 0) Then
    outFile.WriteLine(bundle.LastErrorText)
    WScript.Quit
End If


outFile.Close