Tcl Requires Chilkat v11.0.0+
Tcl
Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.Chilkat Tcl Downloads
load ./chilkat.dll
set success 0
set mailman [new_CkMailMan]
# ...
# ...
set xmlBundleStr "..."
# ------------------------------------------------------------------------
# The LoadXmlString method is deprecated:
# bundleObj is a CkEmailBundle
set bundleObj [CkMailMan_LoadXmlString $mailman $xmlBundleStr]
if {[CkMailMan_get_LastMethodSuccess $mailman] == 0} then {
puts [CkMailMan_lastErrorText $mailman]
delete_CkMailMan $mailman
exit
}
# ...
# ...
delete_CkEmailBundle $bundleObj
# ------------------------------------------------------------------------
# Do the equivalent using EmailBundle.LoadXmlString.
set bundle [new_CkEmailBundle]
set success [CkEmailBundle_LoadXmlString $bundle $xmlBundleStr]
if {$success == 0} then {
puts [CkEmailBundle_lastErrorText $bundle]
delete_CkMailMan $mailman
delete_CkEmailBundle $bundle
exit
}
delete_CkMailMan $mailman
delete_CkEmailBundle $bundle