Outlook 中的 PHPMailer thread/conversation 无法正常工作

PHPMailer thread/conversation in outlook not working

我在gmail中实现了"conversation/thread"效果,使用这段代码

$phpmailer->MessageID = $message_id;

因此,在 gmail 中,所有发送的电子邮件(在 $message_id 中具有相同的值)都在相同的 "conversation/thread" 中接收,但这在 outlook 中不起作用,两者都 windows 10 windows 10...

的电子邮件应用程序和 Outlook 应用程序

如何在 outllook 中获得与 gmail 相同的结果?

不要re-use 多个消息使用相同的消息 ID。有header专门用于创建线程,对它们的权威解释是here。简而言之,将您要回复的消息的 Message-ID 添加到 References header 中,也可以选择添加到 In-reply-to header 中。您可以使用 addCustomHeader().

在 PHPMailer 中创建那些 headers