How to configure Outlook account via C#?

此生再无相见时 提交于 2019-12-01 04:30:23

问题


Need to configure email, name, mail server and other by c#. How do I do this without using Outlook Redemption?


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!