(C++) Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText
      
      Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText. Note: This example requires Chilkat v11.0.0 or greater. 
		
 
      #include <CkMailMan.h>
#include <CkEmail.h>
void ChilkatSample(void)
    {
    CkMailMan mailman;
    // ...
    // ...
    const char *xmlStr = "...";
    // ------------------------------------------------------------------------
    // The LoadXmlEmailString method is deprecated:
    CkEmail *emailObj = mailman.LoadXmlEmailString(xmlStr);
    if (mailman.get_LastMethodSuccess() == false) {
        std::cout << mailman.lastErrorText() << "\r\n";
        return;
    }
    // ...
    // ...
    delete emailObj;
    // ------------------------------------------------------------------------
    // Do the equivalent using Email.SetFromXmlText.
    CkEmail email;
    bool success = email.SetFromXmlText(xmlStr);
    if (success == false) {
        std::cout << email.lastErrorText() << "\r\n";
        return;
    }
    }
     |