Hi David,
>I am using the outlook.application object and I am trying to access the >senders email address from the mailitem object. It has a sendername >property but not an email address property. Does anybody know whether I can >access the email address property
I used Nigel Coates' MAPI class (which I think can be found in the downloads section here on UT) to learn a lot of what i know about the MAPI. Looking at the code he uses to get the sender's e-mail address (the class's GetSender method), there appears to be a MsgOrigAddress property. He then strips the "SMTP:" section of thsi out to get the e-mail address.
I use this myself to identify registered users for one of my automated systems... the only problem I have found is when using it internally wherein the MsgOrigAddress property holds the Exchange User address rather than the external e-mail address.
Hope this helps,
Ben
Ben Sugden
"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes