Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from MailMan.TransferMail to MailMan.FetchAll
Provides instructions for replacing deprecated TransferMail method calls with FetchAll.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oMailman
LOCAL oBundleObj
LOCAL nKeepOnServer
LOCAL nHeadersOnly
LOCAL nNumBodyLines
LOCAL oBundleOut
nSuccess := 0
oMailman := CreateObject("Chilkat.MailMan")
// ...
// ...
// ------------------------------------------------------------------------
// The TransferMail method is deprecated:
oBundleObj := oMailman:TransferMail()
IF (oMailman:LastMethodSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
RETURN
ENDIF
// ...
// ...
oBundleObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using FetchAll.
// Your application creates a new, empty EmailBundle object which is passed
// in the last argument and filled upon success.
nKeepOnServer := 0
nHeadersOnly := 0
// Irrelevent because we are not downloading headers-only.
nNumBodyLines := 0
oBundleOut := CreateObject("Chilkat.EmailBundle")
nSuccess := oMailman:FetchAll(nKeepOnServer, nHeadersOnly, nNumBodyLines, oBundleOut)
IF (nSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
oBundleOut:destroy()
RETURN
ENDIF
oMailman:destroy()
oBundleOut:destroy()