How can I make an email interactive/actionable (perhaps via Javascript) by a little icon click without having to goto another website?

233 views Asked by At

I read this thread: Is JavaScript supported in an email message?

But still the question remain relevant to me.

So how does really Yammer messages are actionable in Outlook?

There are thumbs up that's possible, there're sometimes voting that's possible. And from my memory (rather bad on this one) I think Gmail too allow that to a certain extent.

Are there any libraries that can be embedded in the Email HTML construction that support this kind of feature?

-- Edit

An example screenshot is as follows. Sorry about the black boxes as I had to remove all private info from there). As you can see the Thumbs up is a link works indeed, without having to visit Yammer. All inside Outlook. (Note the Red arrows marked are there for the "Like" functionality and the "Others voted" functionality)

The state change that I invoked is notable in the Email message as well as Yammer post in the same exact way.

enter image description here

2

There are 2 answers

0
Dmitry Streblechenko On

Outlook won't run Javascript or submit HTML forms from email messages for security reasons.

Your best bet is Actionable messages in Outlook

1
Eugene Astafiev On

Any scripts are not supported by email client applications for security reasons. As Dmitry noted, Outlook doesn't run any JavaScript or HTML forms in message bodies.

Email applications vendors introduce their own solutions for injecting interactive elements into message bodies, in case of Office 365 that is https://adaptivecards.io/. Adaptive Cards are an open card exchange format enabling developers to exchange UI content in a common and consistent way, see Adaptive Cards Overview for more information.