VB.NET Requires Chilkat v11.0.0+
VB.NET
Read To and Cc from a received message
See more Email Object Examples
Enumerate visible recipients by zero-based index. An address can have an empty display name. A delivered copy usually does not reveal recipients who were blind-copied.
Chilkat VB.NET Downloads
Dim success As Boolean = False
' Assumes Chilkat is unlocked. See Global Unlock Sample.
Dim email As New Chilkat.Email
success = email.LoadEml("message.eml")
If (success <> True) Then
Debug.WriteLine(email.LastErrorText)
Exit Sub
End If
Dim i As Integer = 0
While (i < email.NumTo)
Debug.WriteLine("To: " & email.GetToName(i) & " " & email.GetToAddr(i))
i = i + 1
End While
i = 0
While (i < email.NumCC)
Debug.WriteLine("Cc: " & email.GetCcName(i) & " " & email.GetCcAddr(i))
i = i + 1
End While