Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from MailMan.LoadMime to Email.SetFromMimeText
Provides instructions for replacing deprecated LoadMime method calls with Email.SetFromMimeText.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oMailman
LOCAL cMimeText
LOCAL oEmailObj
LOCAL oEmail
nSuccess := 0
oMailman := CreateObject("Chilkat.MailMan")
// ...
// ...
cMimeText := "...."
// ------------------------------------------------------------------------
// The LoadMime method is deprecated:
oEmailObj := oMailman:LoadMime(cMimeText)
IF (oMailman:LastMethodSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
RETURN
ENDIF
// ...
// ...
oEmailObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using Email.SetFromMimeText.
oEmail := CreateObject("Chilkat.Email")
nSuccess := oEmail:SetFromMimeText(cMimeText)
IF (nSuccess == 0)
? oEmail:LastErrorText
oMailman:destroy()
oEmail:destroy()
RETURN
ENDIF
oMailman:destroy()
oEmail:destroy()