|
-
Mar 15th, 2001, 09:19 AM
#1
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|