簡體   English   中英

從Outlook中配置的多個電子郵件ID中獲取收件箱郵件項目

[英]Getting Inbox mail item from multiple email ID configured in outlook

我正在使用Outlook添加,正在Outlook中根據要處理的收件箱項目選擇電子郵件ID配置了三個帳戶。 在2010年,我的代碼運行完美,但在Outlook 2007中卻出現了問題。

根據選擇,我收到了收件箱中的物品,但在2007年卻給了錯誤

             Dim mailID As String = selectedmailID
            inBoxItems = ns.Folders(mailID).Folders("Inbox").Items        //error
            inBoxItems = inBoxItems.Restrict("[Unread] = true")

我該如何解決這個問題? 開發系統包含Outlook 2010,但測試系統包含otlook 2007我也更改了參考,但是它不起作用。

Outlook中有設置嗎? 請幫我

確切的錯誤消息是什么? 為什么不使用ns.GetDefaultFolder(olFiolderInbox)?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM