Mailjet电子邮件在附加文件时为空



这段代码为特定的交付创建了一个日历,然后将其附加到要发送的电子邮件中。问题是,当我附加。ics文件时,模板中断(没有文本,没有图片……)没有)。只有日历文件被发送(即使它确实被发送到正确的电子邮件)。

const event = await this.calendarService.getEventForDelivery(deliveryId);
await this.sendMailjetTemplate('4069368', d.email, [{contentType: 'text/calendar', content: event}], {
ASN: d.identifier,
});

通过指定"text"属性到我的邮件。