如果激活了自动回复,则从Outlook电子邮件中删除收件人 [英] Remove recipients from Outlook email if automatic reply is activated

查看:135
本文介绍了如果激活了自动回复,则从Outlook电子邮件中删除收件人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VBA脚本,可以生成并发送电子邮件.有时,某些电子邮件收件人不在办公室,并且打开了自动回复"功能.由于电子邮件的内容与不在办公室的人无关,因此我想删除这些特定的收件人.所有电子邮件收件人都在同一台MS Exchange服务器中.反正有执行此操作的方法吗?谢谢

I have a VBA script that generate and send an email. Sometimes some of the recipients of the email are out of office and have an Automatic Reply turned on. Since the content of the email is not relevant to somebody that is out of office I would like to delete the those specific recipients. All email recipients are in the same MS Exchange server. Is there anyway to perform this operation? Thanks

推荐答案

您可以

  1. 使用Exchange Web服务API检索OOF状态

  1. use Exchange Web Services API to retrieve the OOF status

使用扩展MAPI(仅C ++或Delphi)打开另一个用户的邮箱(IMsgStore)并读取PR_OOF_STATE属性.

use Extended MAPI (C++ or Delphi only) to open the other user's mailbox (IMsgStore) and read the PR_OOF_STATE property.

使用赎回(任何语言;免责声明:我是赎回开发人员)并使用 RDOExchangeMailboxStore.OutOfOfficeAssistant 或使用 RDOSession.GetSharedMailbox .

Use Redemption (any language; disclaimer: I am Redemption developer) and use RDOExchangeMailboxStore.OutOfOfficeAssistant or read the PR_OOF_STATE property using RDOStore.Fields[]. To open other user's mailbox, you can use RDOSession.GetSharedMailbox.

更新.请注意,#2和#3需要对该邮箱的访问权限.当您要发送给的收件人为OOF时,您可以执行Outlook在横幅中显示邮件提示时的操作.使用EWS和 GetMailTips 操作.兑换通过 RDOAddressEntry 公开此功能.GetMailtips和

UPDATE. Note that #2 and #3 require access rights to the mailbox in question. You can do what Outlook does when it displays the mail tip in a banner when a recipient you are about to send to is OOF. Use EWS and GetMailTips operation. Redemption exposes this functionality through RDOAddressEntry.GetMailtips and RDOMailTips object.

这篇关于如果激活了自动回复,则从Outlook电子邮件中删除收件人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆