masj78
Active member
Does anyone know how to get the sender of a message using CDO 1.21. I have tried the method suggested on the Microsoft website as follows:
VB.NET:
Dim objAddress As MAPI.AddressEntry
Dim address As String
objAddress = objMessage.Sender this line gives error
address = objAddress.Name
MsgBox("The message address is: " & address)
However it gives me a [MAPI_E_NOT_FOUND(8004010F)]] error, but I can access other properties of the message such as its text, date sent, size, subject etc.
Cheers!
VB.NET:
Dim objAddress As MAPI.AddressEntry
Dim address As String
objAddress = objMessage.Sender this line gives error
address = objAddress.Name
MsgBox("The message address is: " & address)
However it gives me a [MAPI_E_NOT_FOUND(8004010F)]] error, but I can access other properties of the message such as its text, date sent, size, subject etc.
Cheers!