And it also won't necessarily give you an SMTP address. If CurrentUser is an
Exchange DN that's what you'll get, not an SMTP address.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Dmitry Streblechenko" wrote in message
...
That will give you the current user's address, but it has nothing to do
with the sender address of any particular message in your inbox.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nagaraj" wrote in message
...
Thanks for your information. The problem is solved by the following line
sender = Application.Session.CurrentUser.Address
--
Nagaraj Tadipatri