Lianja
Lianja
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat Lianja Downloads
llSuccess = .F.
loMailman = createobject("CkMailMan")
// ...
// ...
// Assume the email header was previously downloaded using some other Chilkat method...
loEmailHeader = createobject("CkEmail")
// ------------------------------------------------------------------------
// The GetFullEmail method is deprecated:
loFullEmailObj = loMailman.GetFullEmail(loEmailHeader)
if (loMailman.LastMethodSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
release loEmailHeader
return
endif
// ...
// ...
release loFullEmailObj
// ------------------------------------------------------------------------
// Do the equivalent using FetchFull.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
loFullEmail = createobject("CkEmail")
llSuccess = loMailman.FetchFull(loEmailHeader,loFullEmail)
if (llSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
release loEmailHeader
release loFullEmail
return
endif
release loMailman
release loEmailHeader
release loFullEmail