如何追溯退回的邮件 [英] How to trace back bounced messages

查看:97
本文介绍了如何追溯退回的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络服务,它允许我通过 Office 365 托管服务发送消息.到目前为止一切正常.但是在某些情况下,电子邮件会退回,我想在我的 CRM 中将该电子邮件标记为退回/未送达.在某些情况下,远程主机返回 undelivered: 和原始主题以及它发送到的电子邮件地址.在谷歌地址的情况下,情况并非如此.所以我无法解析主题以获取原始消息.正文或标题中是否有任何信息可用于查找未传递的原始消息?

I have a web services which allows me to send messages via office 365 hosted service. So far all works fine. But there is cases when an email bounces and I would like to mark that email bounced / undelivered in my CRM. In some cases the remote host returns undelivered: and the original subject as well as the email address it was send to. In case of google addresses this is not the case. So I can’t parse the subject to get the original message. Is there anywhere in the body or header any info which I could use to find the originating message that was not delivered ?

推荐答案

退回邮件的 In-reply-to 标头应包含您发送的邮件的原始 InternetMessageId.您可以使用 InternetMessageHeaders 或获取该标头的 SingleValueExtendedProperties 属性,例如

The In-reply-to header of the bounce message should contain the original InternetMessageId of the Message you Sent message. You can either use the InternetMessageHeaders or get the SingleValueExtendedProperties property for that header eg

https://graph.microsoft.com/v1.0/me/MailFolders('Inbox')/messages/?$select=ReceivedDateTime,Sender,Subject,IsRead,inferenceClassification,InternetMessageId,parentFolderId,hasAttachments,webLink&$Top=10&$expand=SingleValueExtendedProperties($filter=Id eq 'String 0x1042')

Graph Explorer 预览的编码版本

Encoded version for the Graph Explorer preview

https://graph.microsoft.com/v1.0/me/MailFolders('Inbox')/messages/?$select=ReceivedDateTime%2cSender%2cSubject%2cIsRead%2cinferenceClassification%2cInternetMessageId%2cparentFolderId%2chasAttachments%2cwebLink&$Top=10&$expand=SingleValueExtendedProperties(%24filter%3dId+eq+%27String+0x1042%27)

这篇关于如何追溯退回的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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