(Xojo Plugin) Transition from MailMan.LoadXmlEmailString to Email.SetFromXmlText
Provides instructions for replacing deprecated LoadXmlEmailString method calls with Email.SetFromXmlText. Note: This example requires Chilkat v11.0.0 or greater.
Dim mailman As New Chilkat.MailMan
// ...
// ...
Dim xmlStr As String
xmlStr = "..."
// ------------------------------------------------------------------------
// The LoadXmlEmailString method is deprecated:
Dim emailObj As Chilkat.Email
emailObj = mailman.LoadXmlEmailString(xmlStr)
If (mailman.LastMethodSuccess = False) Then
System.DebugLog(mailman.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using Email.SetFromXmlText.
Dim email As New Chilkat.Email
Dim success As Boolean
success = email.SetFromXmlText(xmlStr)
If (success = False) Then
System.DebugLog(email.LastErrorText)
Return
End If
|