(Lianja) Transition from MailMan.LoadEml to Email.LoadEml
Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml. Note: This example requires Chilkat v11.0.0 or greater.
loMailman = createobject("CkMailMan")
// ...
// ...
lcFilePath = "c:/dir/example.eml"
// ------------------------------------------------------------------------
// The MailMan.LoadEml method is deprecated:
loEmailObj = loMailman.LoadEml(lcFilePath)
if (loMailman.LastMethodSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
return
endif
// ...
// ...
release loEmailObj
// ------------------------------------------------------------------------
// Do the equivalent using Email.LoadEml.
loEmail = createobject("CkEmail")
llSuccess = loEmail.LoadEml(lcFilePath)
if (llSuccess = .F.) then
? loEmail.LastErrorText
release loMailman
release loEmail
return
endif
release loMailman
release loEmail
|