question

ShankerBhandari-7585 avatar image
0 Votes"
ShankerBhandari-7585 asked azure-cxp-api edited

How to connect Node service with Office 365 Mail Box

I'm facing issues while trying to read mail from Office 365 account.
Below is the code I'm using:

const EWS = require('node-ews');


// exchange server connection info
const ewsConfig = {
username: 'myuser@myDomain.com',
password: 'mypassword',
host: 'https://outlook.office365.com/owa/myDomain.com/',
auth: 'basic'
};


// initialize node-ews
const ews = new EWS(ewsConfig);


// define ews api function
const ewsFunction = 'ExpandDL';


// define ews api function args
const ewsArgs = {
'Mailbox': {
'EmailAddress':'publiclist@domain.com'
}
};


// query EWS and print resulting JSON to console
ews.run(ewsFunction, ewsArgs)
.then(result => {
console.log(JSON.stringify(result));
})
.catch(err => {
console.log(err.message);
});

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

@ShankerBhandari-7585 Thanks for using Microsoft Q&A forum. We currently supports the products listed in right-hand pane (more to be added soon)

Since you have asked your issue in correct forums:  https://stackoverflow.com/questions/62155764/issue-while-connecting-node-service-with-office365-mail-exchange-server

I suggest you to be patient and wait for an expert to answer in the StackOverflow forum.








5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.