Need to configure email, name, mail server and other by c#. How do I do this without using Outlook Redemption?
First, create a PRF file - either manually or dynamically via your .NET application.
Then, to import the account you launch Outlook with the command line option:
outlook.exe /importprf C:\SomePath\FileName.prf
This can be done within your C# code using the System.Diagnostics.Process
class.
来源:https://stackoverflow.com/questions/11880930/how-to-configure-outlook-account-via-c