C#
C#
Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.Chilkat C# Downloads
bool success = false;
Chilkat.MailMan mailman = new Chilkat.MailMan();
// ...
// ...
string xmlBundleStr = "...";
// ------------------------------------------------------------------------
// The LoadXmlString method is deprecated:
Chilkat.EmailBundle bundleObj = mailman.LoadXmlString(xmlBundleStr);
if (mailman.LastMethodSuccess == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using EmailBundle.LoadXmlString.
Chilkat.EmailBundle bundle = new Chilkat.EmailBundle();
success = bundle.LoadXmlString(xmlBundleStr);
if (success == false) {
Debug.WriteLine(bundle.LastErrorText);
return;
}