Outlook Sender Address

  • Thread starter Thread starter Robert Marmion
  • Start date Start date
R

Robert Marmion

I want to be able to get the raw sender's address from
outlook mail items in my inbox. In other words, I want
to be able to see the address in it's (e-mail address removed)
format.
However, when I go to the SendersName or any other
similar field in Outlook, the application automatically
accesses my address book to resolve the name into
the "Display Name" which I do not want. Firstly it isn't
the information I want, and secondly, I get warned that
someone is trying to access my address book - every time
I try to process an email.
Does anyone know how to resolve this?
-Thanks, Rob Marmion
 
There is no Outlook property that returns the sender's email address. You can either use CDO (or Redemption to avoid security prompts -- http://www.dimastr.com/redemption/) to get the From address or use Outlook to get the Reply To address. Sample code at http://www.slipstick.com/dev/code/getsenderaddy.htm.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
Back
Top