OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 96 forks source link

"Send" button in outlook freezes when restarting outlook and sending mail for first time in new (pop out) window for ItemSend add-in #4840

Open pza-dev-brcm opened 2 weeks ago

pza-dev-brcm commented 2 weeks ago

We are using ItemSend event in outlook add-in. We monitor email content like subject, body, recipients, attachments and based on policy we decide whether to allow or block the email to be sent. For optimisation, we are handling OnMessageAttachmentsChanged event too in add-in. As a result, when user attaches any file to email we get callback and we do some processing as per business logic.

We don't see any issue when add-in loads properly at the time of sending an email. ItemSend event gets triggered and add-in works properly.

But we have observed issue inconsistently with below steps

  1. User relaunches outlook application.
  2. For composing email user opens "new (pop out) window". [Issue is seen when mail is composes in pop up window]
  3. Composes email and click on "send" button. then "send" button freezes and mail is not sent.

Note: We don't see add-in working on your request message, in this case. It seems that add-in is not yet triggered as send action of mail is not completed properly.

Also note that, this issue is inconsistent and only observed when we relaunch outlook application, and first mail we are composing in "new (Pop out) window"

Your Environment Platform [PC desktop, Mac, iOS, Office on the web]: PC Desktop Host [Excel, Word, PowerPoint, etc.]: New Outlook Office version number: Microsoft Outlook Version 1.2024.814.200 (Production) | Client Version is 20240809006.12 | WebView2 Version is 127.0.2651.105 Operating System: Windows11 Browser (if using Office on the web): Chrome

rajjha-msft commented 2 weeks ago

Hey @pza-dev-brcm

It is not a repro for us.

Medha-lab commented 1 week ago

Please find attach video for this issue https://github.com/user-attachments/assets/06e2e23d-753a-43bc-a822-2f651a0d7315

mobisw-msft commented 1 week ago

Hey @Medha-lab ,

I had a few follow up questions before we proceed.

  1. It looks like the popout page is still loading. If you wait long enough for the Popout page to fully load, and then send the email, does this issue still persist?
  2. What is the experience when no ItemSend add-ins are installed? Does the sending of the email still fail?
  3. Does this issue exist for you in Outlook for Web for the same behaviour?
Medha-lab commented 4 days ago

Please find answers below for above queries - 1.This issue still persist if we wait long enough after pop out and then send mail. 2.Not seeing this issue when no ItemSend add-ins are installed 3.This is also exist for Outlook for web

exextoc commented 2 days ago

@Medha-lab Please share the addin that we can side load and test the scenario. Share the minimal addin that helps us repro the scenario. You can create a private repo and share it with @exextoc.

Medha-lab commented 2 days ago

We will provide