Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i access mail from a microsoft exchange server using javascript?

I am trying to build a desktop app using electron that retrieves mail from a specific mailbox (microsoft exchange server), now, i have looked around and read that mailbox connection should be done server side (the question was made by a guy building a web based app that is a little bit similar to what i want to do), but, since i am not really deploying a node js server but rather using electron, which, as far as i understand is like a desktop app version of node, im not sure on which approach to take. Should i use an api? does microsoft has any interface for this? or should i use a third party integration for it?

like image 381
Juan Avatar asked May 25 '26 08:05

Juan


1 Answers

It looks like the Exchange Web Services API is only provided as a CLR assembly, so if you wanted to use it you'd need to:

  • write a C# console app that you then spawn from your Electron app (and communicate via stdin/stdout), or
  • use the EWS API in your Electron app via Edge.js

Alternatively, you could probably just directly communicate with the exchange server using SOAP messages, but that could be a bit tedious to implement.

like image 187
Vadim Macagon Avatar answered May 27 '26 22:05

Vadim Macagon