简体   繁体   中英

Is it possible to add interactivity to the HTML body of the email in an Outlook Addin?

I'd like to develop an Outlook Add-in which adds some HTML content to the body of the email. If the user has this add-in installed, I'd like to add interactivity to the elements (for instance, replacing anchor tags with actual buttons that could trigger either a command, or open a task panel).

This would make the UX better by managing the entire user flow directly from the email content, without having to visit an external app.

Currently. I noticed that doing the following will return the string of the HTML content. But there's no way to actually addEventListener or replace elements in any way.

Office.context.mailbox.item.body.getAsync(Office.CoercionType.Html, callback)

If anyone could point me to the right direction, i'd appreciate it!

Currently, this capability is not part of the product. We track Outlook add-in feature requests on our Tech Community Page . Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered when we go through our planning process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM