我有一个用户场景,其中用户A可以从我们的网站向用户B发送消息,我使用SendGrid将消息作为电子邮件发送。然后,用户B可以回复该电子邮件并发送他们的消息,我希望该消息能够被接收到用户A的电子邮件中。我已经成功地设置了从用户A发送电子邮件给用户B的功能,但是我没有看到文档中如何配置来自用户B的电子邮件回复用户A的方法。此外,如果两个用户之间来回进行对话,我希望将其保留在电子邮件线程中。当然,使用SendGrid这是可能的。
我一直这样使用replyTo:
const message = {
to: 'someemail@email.com',
replyTo: 'test@test.com'
bcc: ['test@test.com'],
from: 'test@test.com',
text: 'email',
html: '<strong>email</strong>',
substitutions: {
// key-values pairs for substitutions
}
}