SylvainVeler-6590 avatar image
0 Votes"
SylvainVeler-6590 asked SylvainVeler-6590 commented

How to detect mail sending in Outlook Javascript API ?


I'm currently developing an Outlook add-in thanks to JavaScript API and I would like to know when the user just clicked the send button, in order to add some background code.

I already tried to add some code when the user is sending the email by adding the code below into the manifest :

         <ExtensionPoint xsi:type="Events">

             <Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />


But somehow, it doesn't seem to work.

I also noticed that everything is cached, and it may be the issue since it doesn't load the new code. I tried to delete my browser cache (because it's mentioned in several posts), but it doesn't seems to load the new code either.

Is there some listener in order to detect the email sending, or did I do something wrong ?

Also, Is there a way to prevent the add-in files to be cached or even to delete the cache ?

Thank you in advance

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SylvainVeler-6590 ,

Welcome to our forum!

Lokks like your issue is related to add-in development, please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client. In order to better solve your problem, we will remove "office-outlook-itpro" tag, and add "office-addins-dev" tag.

Thanks for your understanding and hope your issue would be resolved soon.

0 Votes 0 ·

Thanks for this correction.
This is the first time we use this forum so, we probably need more practice ;-)
Nice day to you.

0 Votes 0 ·

0 Answers