(Xojo Plugin) 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.
Dim mailman As New Chilkat.MailMan
// ...
// ...
Dim filePath As String
filePath = "c:/dir/example.eml"
// ------------------------------------------------------------------------
// The MailMan.LoadEml method is deprecated:
Dim emailObj As Chilkat.Email
emailObj = mailman.LoadEml(filePath)
If (mailman.LastMethodSuccess = False) Then
System.DebugLog(mailman.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using Email.LoadEml.
Dim email As New Chilkat.Email
Dim success As Boolean
success = email.LoadEml(filePath)
If (success = False) Then
System.DebugLog(email.LastErrorText)
Return
End If
|