outlook-smart-alerts

Outlook Smart Alerts

An Outlook Add-in that intercepts the Send button and shows a confirmation dialog before the email is sent.

What It Does

When the user clicks Send, a popup appears with 3 questions:

  1. Does this email contain confidential information? (Yes / No)
  2. Priority level? (Low / Normal / High)
  3. Do you confirm sending? (Send / Cancel)

If the user clicks Send β†’ email is sent.
If the user clicks Cancel β†’ email is blocked.

Live Dialog Preview

πŸ‘‰ Click here to preview the dialog

File Structure

outlook-smart-alerts/
β”œβ”€β”€ manifest.xml      # Add-in manifest β€” sideload this into Outlook
β”œβ”€β”€ commands.html     # Event-based runtime page (no UI)
β”œβ”€β”€ commands.js       # OnMessageSend event handler
β”œβ”€β”€ dialog.html       # Confirmation popup UI
└── dialog.js         # Dialog logic (Send / Cancel)

How It Works

User clicks Send
    └── OnMessageSend event fires
    └── commands.js opens dialog.html as a popup
    └── User answers the 3 questions
    └── "Send"   β†’ email is sent      (allowEvent: true)
    └── "Cancel" β†’ email is blocked   (allowEvent: false)

How to Test

Requirements

Steps

1. Open Outlook on the Web

https://outlook.office.com

2. Go to Add-ins settings

Settings β†’ View all Outlook settings β†’ Mail β†’ Customize actions β†’ Add-ins

Or navigate directly:

https://outlook.office.com/mail/options/general/manageAddIns

3. Sideload the manifest

4. Test

Tech Stack

Requirements