Open MadhabaPatra opened 1 year ago
It seems that outlook does not support simple authentication anymore; you can check this sites in order to connect using oAuth2.0:
https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth https://learn.microsoft.com/en-us/answers/questions/875398/read-outlook-mails-via-imap-using-nodejs-and-oauth?page=1
hope this helps...
@erivalo
I understand that when it comes to user authentication within an organization, there can be concerns around the scope for a user (like please contact administrators). To address this, I am opting to use Outlook with an app password to use imap service.
I am using node-imap to search for the latest emails in my Outlook account's inbox. The documentation mentions the use of the "recent" or "new" flag. However, it seems to work fine for Gmail but not for Outlook. I have attached my code below. Can someone please suggest a solution?
So here on mail event triggered when mails arrive , and i am searching recent mails on those mails.