Can I programmatically read an email address from a mail object?
Posted on 2014-01-20
I wrote a routine is VB that reads mail that arrives in my MS Outlook 2K Inbox. I'm able to loop through the items collection and read the message subject and body, however, I can not read the email address of emails that are received in my Inbox.
Global objInbox As MAPIFolder
For n = objInbox.Items.Count To 1 Step -1
Set objMail = objFolder.Items(n)
I've done some research and suspect that only the displayname is accessible when Outlook 2K is used. Can this be correct? Reading the senders email address seems like it should be a pretty basic thing to do.