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中提供带附件的电子邮件语法