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

Transition from MailMan.GetFullEmail to MailMan.FetchFull

Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oMailman
LOCAL oEmailHeader
LOCAL oFullEmailObj
LOCAL oFullEmail

nSuccess := 0

oMailman := CreateObject("Chilkat.MailMan")

//  ...
//  ...

//  Assume the email header was previously downloaded using some other Chilkat method...
oEmailHeader := CreateObject("Chilkat.Email")

//  ------------------------------------------------------------------------
//  The GetFullEmail method is deprecated:

oFullEmailObj := oMailman:GetFullEmail(oEmailHeader)
IF (oMailman:LastMethodSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    oEmailHeader:destroy()
    RETURN
ENDIF

//  ...
//  ...

oFullEmailObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using FetchFull.
//  Your application creates a new, empty Email object which is passed 
//  in the last argument and filled upon success.

oFullEmail := CreateObject("Chilkat.Email")
nSuccess := oMailman:FetchFull(oEmailHeader, oFullEmail)
IF (nSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    oEmailHeader:destroy()
    oFullEmail:destroy()
    RETURN
ENDIF

oMailman:destroy()
oEmailHeader:destroy()
oFullEmail:destroy()