[英]Exchange Transport Agent Bounce MailItem
In our Exchange RoutingAgent
, we would like to be able to bounce an email back to the sender in the event of an unexpected exception. 在我们的Exchange RoutingAgent
,我们希望能够在出现意外异常的情况下将电子邮件退回给发件人。 We would also like to be able to send the bounce message to some pre-defined admin email too if possible. 如果可能的话,我们也希望能够将退回邮件发送到一些预定义的管理员电子邮件中。 Is there any way to bounce a message in the OnSubmittedMessage
or the OnResolvedMessage
events? 有什么方法可以在OnSubmittedMessage
或OnResolvedMessage
事件中退回消息吗? I am hoping there is some method in the Exchange libraries to easily achieve this, or is there some way to create a new MailItem and send it to the original sender and possibly an admin? 我希望Exchange库中有某种方法可以轻松实现这一目标,还是有某种方法可以创建新的MailItem并将其发送给原始发件人,也可以是管理员?
You need to generate a new message to do that there is a sample for this on https://blogs.msdn.microsoft.com/mstehle/2010/03/10/howto-return-to-sender-transport-agent-sample/ 您需要生成一条新消息来执行以下操作:https://blogs.msdn.microsoft.com/mstehle/2010/03/10/howto-return-to-sender-transport-agent-sample /
You should also be able to use https://msdn.microsoft.com/en-us/library/jj976002(v=exchg.150).aspx 您还应该能够使用https://msdn.microsoft.com/zh-cn/library/jj976002(v=exchg.150).aspx
Cheers Glen 干杯格伦
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.