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
35 stars 31 forks source link

Sample code not working on Outlook Office 365 Web App & Mac #5

Closed amrfarid140 closed 6 years ago

amrfarid140 commented 6 years ago

I have tried this sample on both Outlook Office 365 Web App & Mac but it doesn't work. I can see the add-ins being added successfully but email send blocking is not happening.

I have tested the server configuration by adding the XML through a URL and via file upload.

Thanks !

giulioambrogi commented 6 years ago

Hi @amrfarid140 did you manage to use the code sample in the end? I'm trying to use it on the web app, but doesn't seem to work.

@microsoftopensource any update on that issue?

rexcalibur commented 6 years ago

Hi, i'm trying to test this add-in also but to no avail.

I was able to install it into Office365 but it doesn't seem to catch the email without the subject and didn't add the default cc email, and send it anyway.

Any update on this issue? Thanks.

siewmoi commented 6 years ago

Hi, The on send feature is currently supported for Outlook on the web in Office 365 only.

The software engineer and I ran this code sample and it's working as expected. Did you deploy it to a trusted web server and set your Outlook on the web mailbox policy to enable the on send feature? By default, the on send functionality is disabled.

Add-ins for Outlook on the web that use the on send feature will run for users who are assigned an Outlook on the web mailbox policy that has the OnSendAddinsEnabled flag set to true. You can enable on send by running Exchange Online PowerShell cmdlets.

The Installing Outlook add-ins that use on send section in the following article shows the cmdlets to run : https://docs.microsoft.com/en-us/outlook/add-ins/outlook-on-send-addins#installing-outlook-add-ins-that-use-on-send

ElizabethSamuel-MSFT commented 6 years ago

If you are still facing an issue after trying these suggestions, please reactivate or open a new issue. Thanks.