3
可以在Outlook电子邮件中嵌入图像吗?有了这个代码的前景将插入一个破碎的形象mailBoxItem.body.setSelectedDataAsync如何在Office中插入嵌入式图像-js
var linkToImage = '<img src=\"data:image/'+getTemplateExtension(template.templateType).replace('.','')+";base64," + sasLink + '\"/>';
//Add an image as a link
if (mailBoxItem.body.setSelectedDataAsync) {
mailBoxItem.body.setSelectedDataAsync(linkToImage, {
asyncContext: null,
coercionType: Office.CoercionType.Html
},
function(asyncResult) {
if (asyncResult.status == "failed") {
showMessage("Action failed with error: " + asyncResult.error.message);
} else {
showMessage("You successfully wrote in the email body. Click Next to learn more.");
}
}
)
}
谢谢:)我还做了这样的解决方案,但它不接受,我们不能让我们的形象和公众保持不朽的链接。 – Nicu