D
david.e.smith
I'm writing a .NET app which will run on a local workstation where
Outlook 2003 is installed. I simply want to get the default email
address of the current user. I've figured out how to get a MAPI-
style address (OU=etc) but all I want is the plain-jane address
([email protected]).
Here's how I get the MAPI address:
Dim oApp As New Outlook.Application
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
Dim oRec As Outlook.Recipient = oNS.CurrentUser
Dim sMapiAddressHere As String = oRec.Address
Any help is greatly appreciated.
Outlook 2003 is installed. I simply want to get the default email
address of the current user. I've figured out how to get a MAPI-
style address (OU=etc) but all I want is the plain-jane address
([email protected]).
Here's how I get the MAPI address:
Dim oApp As New Outlook.Application
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
Dim oRec As Outlook.Recipient = oNS.CurrentUser
Dim sMapiAddressHere As String = oRec.Address
Any help is greatly appreciated.