VB.NET
VB.NET
Transition from MailMan.GetFullEmail to MailMan.FetchFull
Provides instructions for replacing deprecated GetFullEmail method calls with FetchFull.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim mailman As New Chilkat.MailMan
' ...
' ...
' Assume the email header was previously downloaded using some other Chilkat method...
Dim emailHeader As New Chilkat.Email
' ------------------------------------------------------------------------
' The GetFullEmail method is deprecated:
Dim fullEmailObj As Chilkat.Email = mailman.GetFullEmail(emailHeader)
If (mailman.LastMethodSuccess = False) Then
Debug.WriteLine(mailman.LastErrorText)
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using FetchFull.
' Your application creates a new, empty Email object which is passed
' in the last argument and filled upon success.
Dim fullEmail As New Chilkat.Email
success = mailman.FetchFull(emailHeader,fullEmail)
If (success = False) Then
Debug.WriteLine(mailman.LastErrorText)
Exit Sub
End If