Is there a way to get the user's email address through Win32 or .NET? Is there a registry key or API that is included in this information?
Edit: I have an application which emails to my company if our application fails and I have to get a return email address so that we can respond to that person's accident experience I am currently receiving a username, but it can not match the email name. Obviously I can get the user to enter my email address, but the interface will be a little frugal if I can try to get at least the email address and the user has to verify that the return email address is correct.
The only way I can think this is in a Windows Active Directory environment. In this case you can ask AD and see if there is an e-mail address associated with the user's account. This will definitely work with MS Exchange and can work with other Enterprise Email systems as well. For .Net you can use classes in the namespace. You can use API for Win32. You will have to read on AD and prepare a suitable query to meet your needs.
Comments
Post a Comment