OfficeDev / Outlook-Add-in-On-Send

Learn how to check for restricted words in an Outlook email message body, add a recipient to the CC line and check that there is a subject in the email on send.
MIT License
37 stars 32 forks source link

On Send won't work with dialog #15

Closed nitro-marky closed 4 years ago

nitro-marky commented 5 years ago

I'm using the on send event with Outlook Add Ins to show a dialog box confirming if the user wants to log the email or not. But it seems to be incompatible to use the On Send with dialogs. When I can get an email to send the send button becomes disabled, this can also happen on no and cancel. I don't understand why there isn't a basic template like the discard dialog that pops up. I just need to modify that for my needs.

Before I post all of the code has anyone else had this problem?

nitro-marky commented 5 years ago

<?xml version="1.0" encoding="UTF-8"?>

<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">

c3a3882d-4880-4e4f-9eeb-8098dc2d7d70 1.0.0.0 en-GB AppDomain1 AppDomain2 AppDomain3
250
ReadWriteItem false