【发布时间】:2020-01-17 15:18:53
【问题描述】:
我目前正在使用带有 Node.js 的 SendGrid 电子邮件 API 来使用他们在 GitHub 上的示例代码发送电子邮件。
const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
to: 'test@example.com',
from: 'test@example.com',
subject: 'Sending with Twilio SendGrid is Fun',
text: 'and easy to do anywhere, even with Node.js',
html: '<strong>and easy to do anywhere, even with Node.js</strong>',
};
sgMail.send(msg);
我希望能够在我的应用中显示这封电子邮件的送达状态。 这是否可以使用 SendGrid API,如果可以,我应该怎么做?
谢谢
【问题讨论】:
标签: node.js sendgrid sendgrid-api-v3