Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.0.0+

Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText

Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

Dim mailman As New Chilkat.MailMan

'  ...
'  ...

Dim xmlStr As String = "..."

'  ------------------------------------------------------------------------
'  The LoadXmlEmailString method is deprecated:

Dim emailObj As Chilkat.Email = mailman.LoadXmlEmailString(xmlStr)
If (mailman.LastMethodSuccess = False) Then
    Debug.WriteLine(mailman.LastErrorText)
    Exit Sub
End If


'  ...
'  ...



'  ------------------------------------------------------------------------
'  Do the equivalent using Email.SetFromXmlText.

Dim email As New Chilkat.Email
success = email.SetFromXmlText(xmlStr)
If (success = False) Then
    Debug.WriteLine(email.LastErrorText)
    Exit Sub
End If