Sample code for 30+ languages & platforms
CkPython

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

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

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

success = False

mailman = chilkat.CkMailMan()

# ...
# ...

xmlBundleStr = "..."

# ------------------------------------------------------------------------
# The LoadXmlString method is deprecated:

# bundleObj is a CkEmailBundle
bundleObj = mailman.LoadXmlString(xmlBundleStr)
if (mailman.get_LastMethodSuccess() == False):
    print(mailman.lastErrorText())
    sys.exit()

# ...
# ...

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

bundle = chilkat.CkEmailBundle()
success = bundle.LoadXmlString(xmlBundleStr)
if (success == False):
    print(bundle.lastErrorText())
    sys.exit()