Sample code for 30+ languages & platforms
Xojo Plugin

Transition from MailMan.LoadXmlFile to EmailBundle.LoadXml

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

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim mailman As New Chilkat.MailMan

// ...
// ...

Dim filePath As String
filePath = "c:/example/emailBundle.xml"

// ------------------------------------------------------------------------
// The LoadXmlFile method is deprecated:

Dim bundleObj As Chilkat.EmailBundle
bundleObj = mailman.LoadXmlFile(filePath)
If (mailman.LastMethodSuccess = False) Then
    System.DebugLog(mailman.LastErrorText)
    Return
End If

// ...
// ...

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

Dim bundle As New Chilkat.EmailBundle
success = bundle.LoadXml(filePath)
If (success = False) Then
    System.DebugLog(bundle.LastErrorText)
    Return
End If