繁体   English   中英

使用 gmail api users.messages 在线程中回复:发送不起作用

[英]Replying in a thread using gmail api users.messages: send is not working

我正在使用 nodemailer 发送邮件。 但是回复功能没有按预期工作。 下面是在回复操作期间使用的 mailOptions。 邮件已收到但未显示在同一线程中

new MailComposer({
      from: fromEmail,
      to: toAddress,
      inReplyTo: <some unique string here @mail.gmail.com>(it is a messageId from the mail am replying to),
      references: <some unique string here @mail.gmail.com>(same as inReplyTo),
      subject(same as the message am replying to),
      html,
      headers: {
        replyTo: toAddress,
        'In-Reply-To': <some unique string here @mail.gmail.com>(same as inReplyTo),
        references: <some unique string here @mail.gmail.com>(same as inReplyTo) 
      },
    });
...
api.send({
    userId: 'me',
    auth,
    requestBody: {
      raw: encodedMessage
      threadId: 'threadId from the message am replying to'
    }
  });

我错过了什么或做错了什么?

确保在 mailOptionConfig 中您要回复的邮件的主题具有相同的主题。 如果您更改主题,则会创建一个新线程。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM