I am able to send email using this node-ews package but I am not able find suitable example to read email from Inbox folder and get the body and attachments from the email.
I have gone through the Microsoft docs e.g. https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-work-with-exchange-mailbox-items-by-using-ews-in-exchange#get-an-item-by-using-the-ews-managed-api but the examples are provided in C#, C++ or VB..
But I want to do this with Nodejs.
You can use following code to get emails from Inbox using FindItem function and then read each email using GetItem function