【问题标题】:MailKit: How to reply to Gmail conversationMailKit:如何回复 Gmail 对话
【发布时间】:2018-04-13 15:36:45
【问题描述】:

我正在使用 MailKit 回复从 Gmail 帐户收到的电子邮件。我按照 MailKit 文档中的描述设置了 In-Reply-To 和 References 标头的值:

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 中显示为对原始邮件的回复。但是,这不会发生。该邮件与任何其他随机新邮件一样显示。 我错过了什么吗?

【问题讨论】:

    标签: email mailkit


    【解决方案1】:

    你还需要设置message.Subject to “Re:” + replyMessage.Subject

    【讨论】:

      猜你喜欢
      • 2015-01-29
      • 1970-01-01
      • 1970-01-01
      • 2016-05-08
      • 2023-03-08
      • 1970-01-01
      • 2021-01-17
      • 1970-01-01
      • 2020-03-02
      相关资源
      最近更新 更多