Get user's Exchange server and email address in .NET
问题 Hi. I would like to know the address of my user's Exchange server (assuming she's in a typical Windows office network). This is in a C# application. I already have the user's email address, I found it at System.DirectoryServices.AccountManagement.UserPrincipal.Current.EmailAddress , after referencing System.DirectoryServices.AccountManagement 回答1: I use this for my Exchange client application. Install Exchange Web Services Managed API Change your C# project's Properties/Application changed