I was wondering if anybody knew how to retrieve the actual email address from a message sent to a mailbox. I can retrieve the name of the person who sent the message by using the following code:
Dim oApp As New Outlook.Application
Dim oNameSpace As NameSpace
Dim oFolder As MAPIFolder
Dim oMailItem as Object
Set oName = oApp.GetNamespace("MAPI")
Set oFolder = oName.GetDefaultFolder(olFolderInbox)
For Each oMailItem In oFolder.Items
MsgBox oMailItem.SenderName
Next
But I can not find a way to get the address. I appreciate any help. Thanks
