【发布时间】:2020-07-21 04:15:21
【问题描述】:
我正在使用 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'
}
});
我错过了什么或做错了什么?
【问题讨论】:
标签: javascript nodemailer google-api-nodejs-client