当您在网上搜索时,您会找到"如何以编程方式阅读电子邮件"的简单答案...... Al网站正在解释大部分相同的内容,例如此页面. http://omegacoder.com/?p=454
// depends from Exchange server version
service.Credentials = new NetworkCredential("MDR", "password", "zzz");
service.AutodiscoverUrl("mdr@zzz.be");
object o = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10));
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10));
foreach (Item item in findResults.Items)
{
Console.WriteLine(item.Subject);
}
Run Code Online (Sandbox Code Playgroud)
它在执行autodiscoverURL行时失败.错误显示"无法找到自动发现服务".
所以我进一步搜索了这个网站来自微软https://www.testexchangeconnectivity.com/#&&/wEXAQUBcwUBME93h2+JjI0+MV2gTqcRL0g43z9m这里你可以测试你的邮件服务器....当我传递参数时,我得到以下错误. ...
但我还是不明白问题是什么?我是否需要向DNS添加记录?有人可以帮忙吗?
Attempting to test potential Autodiscover URL https://autodiscover.zzz.be/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name autodiscover.ncb.be in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 213.246.192.205
Testing TCP …Run Code Online (Sandbox Code Playgroud)