Lianja
Lianja
Transition from MailMan.LoadMime to Email.SetFromMimeText
Provides instructions for replacing deprecated LoadMime method calls with Email.SetFromMimeText.Chilkat Lianja Downloads
llSuccess = .F.
loMailman = createobject("CkMailMan")
// ...
// ...
lcMimeText = "...."
// ------------------------------------------------------------------------
// The LoadMime method is deprecated:
loEmailObj = loMailman.LoadMime(lcMimeText)
if (loMailman.LastMethodSuccess = .F.) then
? loMailman.LastErrorText
release loMailman
return
endif
// ...
// ...
release loEmailObj
// ------------------------------------------------------------------------
// Do the equivalent using Email.SetFromMimeText.
loEmail = createobject("CkEmail")
llSuccess = loEmail.SetFromMimeText(lcMimeText)
if (llSuccess = .F.) then
? loEmail.LastErrorText
release loMailman
release loEmail
return
endif
release loMailman
release loEmail