Sample code for 30+ languages & platforms
Lianja

Transition from MailMan.LoadEml to Email.LoadEml

Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

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