如何建立Facebook等通知电子邮件/回复系统? [英] How do I build a notification email/reply system like Facebook?
问题描述
当用户在Facebook上收到关于新私人消息的通知电子邮件时,他们可以回复电子邮件,并将其回复自动添加到该网站上的对话中。
When users receive a notification email about a new private message on Facebook, they can reply to the email and have their response automatically added to the conversation on the site.
如何建立这样的跨平台系统?我正在建立一个团体聊天系统。
How can I build a cross platform system like that? I'm building a group chat system.
推荐答案
这显然是过度简化的,但是我们去:
This is obviously way over-simplified, but here we go:
Facebook的电子邮件的工作方式是使用回复
地址中接收者唯一的字符串:
The way Facebook's emails work is by using a string that's unique to the receiver in the reply-to
address:
<m+50edqb50000003jtdj389k6xib6hofj6t41q1c45sdt92qc@reply.facebook.com>
所以当Facebook收到电子邮件到 reply.facebook.com
,他们(大概)在加号之后解析字符串,决定哪个用户/对话是相关的,并将电子邮件的文本添加到对话中。
So when Facebook receive an email into reply.facebook.com
, they (presumably) parse the string after the plus sign, decide which user/conversation it's relevant to, and add the text of the email into that conversation.
这篇关于如何建立Facebook等通知电子邮件/回复系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!