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