Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText

Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oMailman
LOCAL cXmlStr
LOCAL oEmailObj
LOCAL oEmail

nSuccess := 0

oMailman := CreateObject("Chilkat.MailMan")

//  ...
//  ...

cXmlStr := "..."

//  ------------------------------------------------------------------------
//  The LoadXmlEmailString method is deprecated:

oEmailObj := oMailman:LoadXmlEmailString(cXmlStr)
IF (oMailman:LastMethodSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    RETURN
ENDIF

//  ...
//  ...

oEmailObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using Email.SetFromXmlText.

oEmail := CreateObject("Chilkat.Email")
nSuccess := oEmail:SetFromXmlText(cXmlStr)
IF (nSuccess == 0)
    ? oEmail:LastErrorText
    oMailman:destroy()
    oEmail:destroy()
    RETURN
ENDIF

oMailman:destroy()
oEmail:destroy()