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

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

VB.NET
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