我尝试像下面一样将内容发送到邮戳电子邮件模板
var username = "Dear user,<br><br> Thank you for using our product. <br><b>Note :newly Features introduced </b><br>1.A <br>2.B.<br>3.<br><br>";
client.sendEmailWithTemplate({
"From": "abc@gmail.com",
"To": "xyz@gmail.com",
"InlineCss": true,
"TemplateId":123456,
"TemplateModel" : {
"content" : username
}
}, function(error, success) {
if(error) {
console.error("Unable to send via postmark: " + error.message);
return;
}
console.info("Sent to postmark for delivery")
});
当我收到带有模板 HTML 标签的电子邮件时。我如何将它们转换为 HTML 格式,以便它具有正确的格式。任何建议...在此先感谢