使用以下方法连接到其他域上的Exchange后
rdoSession = RedemptionLoader.new_RDOSession();
rdoSession.LogonHostedExchangeMailbox(Settings.Default.ExchangeServer, Settings.Default.ExchangeUserName, Settings.Default.ExchangePassword);
我想获取默认的收件箱文件夹:
RDOFolder folder = rdoSession.GetDefaultFolder(rdoDefaultFolders.olFolderInbox);
但是我收到了这个错误:
System.Runtime.InteropServices.COMException (0x80040111): Error in IMAPISession::OpenMsgStore: MAPI_E_LOGON_FAILED
Make sure your code runs under the Windows user identity that has MAPI profiles.
When running in a service (including ASP under IIS), set your code to run under the Windows user account that has MAPI profiles.
When connecting to an Exchange Server, you can also use RDOSession.LogonExchangeMailbox which does not require an existing profile.
ulVersion: 0
Error: The information store could not be opened.
Component: MAPI 1.0
ulLowLevelError: 0
ulContext: 646
我怎样才能在不同的域名上阅读来自交换的邮件? 谢谢!
答案 0 :(得分:0)
萨拉,
请考虑使用EWS。您可以在Exchange Online,Exchange Online中使用Exchange Web服务(EWS)和其他Web服务作为Office 365的一部分,或在本地Exchange中创建解决方案,使您的用户能够从服务,网站,台式计算机访问Exchange邮箱数据,和移动设备。有关详细信息,请参阅EWS Managed API, EWS, and web services in Exchange。