How to enable event triggers for my outlook addin

Yuxuan Shan 0 Reputation points
2025-02-10T23:48:05.7966667+00:00

I am coding for a custom outlook addin that I will be uploading on Microsoft 365 admin center.

which method is better? Smart alerts (OnMessageSend) or OnSend event?

I want it to work for all platforms, windows, mac, web.

When I use OnSend, it is either giving me

  • 'The add-in ... is preventing this message from being sent. The callback function is unreachable.'
  • or '… couldn’t complete. Please try sending this message later.'

When i use smart alert, I have this error: '... is unavailable and can't process your email at this time'

What is the best way to achieve my goal? (to execute a function when user press send)

Outlook
Outlook
A family of Microsoft email and calendar products.
4,461 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,244 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,470 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.