在电子邮件中嵌入标识符 [英] Embed indentifier within an Email

查看:101
本文介绍了在电子邮件中嵌入标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将ID嵌入到电子邮件中,以便收件人回复系统发送的电子邮件时,我的系统可以接收并将其匹配在一起。

I am trying to embed an ID into an email so that when a recipient replies to an email that my system sends out, my system can pick it up and match the two together.

我尝试附加一个自定义标题,但是当用户回复时被删除。

I have tried appending a custom header, however this is stripped out when the user replies.

我尝试在电子邮件中嵌入HTML注释,但是在创建回复电子邮件时,outlook似乎不会保留评论。

I have tried embedding an HTML comment within the email, but outlook does not seem to keep comments when a reply email is created.

最坏的情况下,我可以手动尝试通过时间跨度发送和接收的电子邮件,或者具有

Worst case scenario, I can manually try and match the sent and received emails by time span or have a visible tag within the message body.

有没有人知道更优雅的解决方案?

Does anyone know of a more elegant solution?

提前感谢

推荐答案

电子邮件已经包含这样的标识符,称为 Message-ID 。还有一种方式可以通过在名为 In-Reply-To 的标题中发送该ID来发送您要回复的消息。这几乎是所有的电子邮件客户端,这就是他们通常做的线程。

Email messages already contain such an identifiers, called Message-ID. And there's even a way to send which message you're replying to by sending that ID in a header called In-Reply-To. That's done by pretty much all email clients, that's how they usually do their threading.

它定义在 RFC 822 (yep很旧),可能在更现代版本中重新定义和改进。

It's defined in RFC 822 (yep that's pretty old) and probably re-defined and refined in more modern versions of that.

这篇关于在电子邮件中嵌入标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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