VB.NET
VB.NET
Transition from MailMan.LoadEml to Email.LoadEml
Provides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim mailman As New Chilkat.MailMan
' ...
' ...
Dim filePath As String = "c:/dir/example.eml"
' ------------------------------------------------------------------------
' The MailMan.LoadEml method is deprecated:
Dim emailObj As Chilkat.Email = mailman.LoadEml(filePath)
If (mailman.LastMethodSuccess = False) Then
Debug.WriteLine(mailman.LastErrorText)
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using Email.LoadEml.
Dim email As New Chilkat.Email
success = email.LoadEml(filePath)
If (success = False) Then
Debug.WriteLine(email.LastErrorText)
Exit Sub
End If