Choosing Microsoft Graph API provider as your type of connection, you can be connected to Office 365. For successful connection you need to be logged in with your Office 365 account and to enter your incoming email account. By entering incoming email, the system will automatically fill in outgoing email with same email address. If you still want to use SMTP protocol for sending emails, inside the form within settings click on checkmark “use SMTP” and fill in appropriate Office 365 SMTP parameters.
Note: Before setting up this provider, log out from office365 or Azure. Also, if the token is lost, the reconnect button will appear, and in that case, before pressing the button, you need to log out from the office365 account on the web browser where you started NSP.