使用它附加图像时,电子邮件将变空

时间:2017-12-05 07:54:02

标签: javascript node.js sendgrid

let message = {
  to: toEmail,
  from: liveCampaign.emailFromAddress,
  subject: liveCampaign.emailSubjectTemplate,
  text: "hi",
  html: '<img src="content_id:myimagecid" alt = "graphics">',
  files: [
    {
      filename: "Christmas2.png",
      content: ("image" | Buffer),
      content_id: "myimagecid",
      contentType: "image/png"
    }
  ]
};

我修改了我的代码,但仍无法发送邮件。我收到sendgrid的响应错误,请有人帮助我,有人可以在sendgrid中提供带附件的电子邮件语法

0 个答案:

没有答案