(Lianja) 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.
loMailman = createobject("CkMailMan")
// ...
// ...
lcXmlStr = "..."
// ------------------------------------------------------------------------
// The LoadXmlEmailString method is deprecated:
loEmailObj = loMailman.LoadXmlEmailString(lcXmlStr)
if (loMailman.LastMethodSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
return
endif
// ...
// ...
release loEmailObj
// ------------------------------------------------------------------------
// Do the equivalent using Email.SetFromXmlText.
loEmail = createobject("CkEmail")
llSuccess = loEmail.SetFromXmlText(lcXmlStr)
if (llSuccess = .F.) then
? loEmail.LastErrorText
release loMailman
release loEmail
return
endif
release loMailman
release loEmail
|