Getting Email notification in Exchange2019 at the time of calendar creation using EWS

Copper Contributor

Hello,

 

When I am creating calendar using EWS in Exchange 2019 the mail notification are also coming for all events, I don't want that mails to come so can you please help me out with some solution.

 

Thanks and Regards

Pragati Agrawal

1 Reply

@PragatiAgrawal 

 

You should be able to unsubscribe the email notification. EWS notifications are handled on a subscription basis. Typically there's one subscription per mailbox, and within the mailbox subscription you can subscribe to some or all folders. 

 

Outside of the managed API it looks like you can terminate the subscription by returning Unsubscribe in the SubscriptionStatus element instead of OK.

 

In summary, there are really two ways to end a subscription on a CAS:

  1. You can send “Unsubscribe” in the response message (as a response to a notifications message from the CAS).
  2. You can become unresponsive to notifications messages.

We recommend the first method (sending an unsubscribe message) rather than the second method, which causes the Client Access server to perform unnecessary work.

 

Check this and let me know if you need further assistance. Thank you!

 

If I have answered your question, please mark your post as Solved

If you like my response, please give it a Like :smile:

Appreciate your Kudos! Proud to contribute! :)