Ответ в ветке с использованием gmail api users.messages: отправка не работает - PullRequest
0 голосов
/ 08 апреля 2020

Я использую 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'
    }
  });

Что я пропускаю или делаю неправильно?

...