MailKit: How to reply to Gmail conversation
我正在使用MailKit答复从Gmail帐户收到的电子邮件。我按照MailKit文档中的说明设置In-Reply-To和References标头的值:
1 2 3 4 5 6 7 | if (!string.IsNullOrEmpty(replyMessage.MessageId)) { message.InReplyTo = replyMessage.MessageId; foreach (var id in replyMessage.References) { message.References.Add(id); } message.References.Add(replyMessage.MessageId); } |
鉴于此,我希望回复邮件会作为对原始邮件的回复显示在Gmail中。但是,这不会发生。邮件会像其他任何随机新邮件一样显示。
我想念什么吗?
您还需要设置为message。 replyMessage.Subject