awangga/outlook

Not able to read all emails

shankch opened this issue · 1 comments

How do I read all emails inside the inbox and not just the latest email

Hi,

You can use mail.allIds() to get the IDs of your emails stored in your inbox. You can get unread emails using mail.unreadIds. Once you have your desired ID, use the method mail.getMail(ID) to get the mail content.