I am planning to write an Outlook Add-in and I was wondering if there was a way to listen to events, such as the "send button". In practice, I'd like to manipulate the body when the user presses the send button and so, even before sending the email.
From what I have seen, the only way to do this, is to create a button, such as "manipulate", and attach an event on the on-click. It's feasible, but it's quite annoying if you have to do it every single time you send an email.
Further, how does Outlook run the add-ins? In compose mode, if I do have a:
Office.context.mailbox.item.body.getAsync
Is this run whenever I type a new letter in my body or when I send the message? I am a bit confused.
This could slightly be a duplicate. Thanks again.