Lianja
Lianja
Transition from MailMan.LoadMbx to MailMan.LoadMbxFile
Provides instructions for replacing deprecated LoadMbx method calls with LoadMbxFile.Chilkat Lianja Downloads
llSuccess = .F.
loMailman = createobject("CkMailMan")
// ...
// ...
lcFilePath = "c:/test/example.mbx"
// ------------------------------------------------------------------------
// The LoadMbx method is deprecated:
loBundleObj = loMailman.LoadMbx(lcFilePath)
if (loMailman.LastMethodSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
return
endif
// ...
// ...
release loBundleObj
// ------------------------------------------------------------------------
// Do the equivalent using LoadMbxFile.
// Your application creates a new, empty EmailBundle object which is passed
// in the last argument and filled upon success.
loBundleOut = createobject("CkEmailBundle")
llSuccess = loMailman.LoadMbxFile(lcFilePath,loBundleOut)
if (llSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
release loBundleOut
return
endif
release loMailman
release loBundleOut