以编程方式将Exchange在线邮箱添加到Outlook

发布于 2025-01-30 04:20:21 字数 169 浏览 5 评论 0原文

赎回支持是否将Exchange Online邮箱添加到Outlook中?我知道可以使用namepace.addstoreex为.pst做这件事,但是赎回可以处理Exchange在线商店吗?

我的目标是关闭Outlook自动化,并根据委派权限编程添加在线邮箱。

谢谢。

Does Redemption support adding an Exchange Online mailbox to Outlook? I know this can be done for a .pst using NameSpace.AddStoreEx, but can Redemption handle an Exchange Online store?

My goal is to turn off Outlook automapping and programmatically add Exchange Online mailboxes based on delegated permissions.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

长途伴 2025-02-06 04:20:21

是的,赎回公开rdosession.stores.adddelegateexchangemailboxstore - 请注意,它需要能够检索该邮箱的自动发现XML。它需要缓存,或与rdoSession.logonhostedexhangemailbox一起使用(符合明确的凭据)或parent rdosession对象必须在Outlook.exe.exe地址中使用(例如从com addin或Outlook vba) - 这种方式赎回可以拦截Outlook凭据。

Yes, Redemption exposes RDOSession.Stores.AddDelegateExchangeMailBoxStore - note that it needs to be able to retrieve the autodiscover XML of that mailbox. It needs to either be cached, or used alongside RDOSession.LogonHostedExhangeMailbox (which takes explicit credentials) or the parent RDOSession object must be used inside the outlook.exe address space (e.g. from a COM addin or Outlook VBA) - this way Redemption can intercept Outlook credentials.

绝對不後悔。 2025-02-06 04:20:21

听起来您对返回文件夹对象的方法,该对象表示指定用户指定的默认文件夹。此方法用于委派方案,其中一个用户已将其一个或多个默认文件夹授权访问另一个用户(例如,他们的共享calendar或任何其他标准文件夹)。例如:

Sub ResolveName() 
 Dim myNamespace As Outlook.NameSpace 
 Dim myRecipient As Outlook.Recipient 
 Dim CalendarFolder As Outlook.Folder 
 
 Set myNamespace = Application.GetNamespace("MAPI") 
 Set myRecipient = myNamespace.CreateRecipient("Dan Wilson") 
 myRecipient.Resolve 
 If myRecipient.Resolved Then 
   Call ShowCalendar(myNamespace, myRecipient) 
 End If 
End Sub 
 
Sub ShowCalendar(myNamespace, myRecipient) 
 Dim CalendarFolder As Outlook.Folder 
 
 Set CalendarFolder = myNamespace.GetSharedDefaultFolder(myRecipient, olFolderCalendar) 
 CalendarFolder.Display 
End Sub

It sounds like you are interested in the NameSpace.GetSharedDefaultFolder method which returns a Folder object that represents the specified default folder for the specified user. This method is used in a delegation scenario, where one user has delegated access to another user for one or more of their default folders (for example, their shared Calendar or any other standard folder). For example:

Sub ResolveName() 
 Dim myNamespace As Outlook.NameSpace 
 Dim myRecipient As Outlook.Recipient 
 Dim CalendarFolder As Outlook.Folder 
 
 Set myNamespace = Application.GetNamespace("MAPI") 
 Set myRecipient = myNamespace.CreateRecipient("Dan Wilson") 
 myRecipient.Resolve 
 If myRecipient.Resolved Then 
   Call ShowCalendar(myNamespace, myRecipient) 
 End If 
End Sub 
 
Sub ShowCalendar(myNamespace, myRecipient) 
 Dim CalendarFolder As Outlook.Folder 
 
 Set CalendarFolder = myNamespace.GetSharedDefaultFolder(myRecipient, olFolderCalendar) 
 CalendarFolder.Display 
End Sub
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文