We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Email Component

We have a requirement to download the emails from the mail Inbox, and convert the email body to PDF. Each email unique reference ID is required to be stored in back-end. The process is required to download only the emails that are not stored to back-end. Is there any option available from Aspose to get the unique ID for each email from Inbox.


Thank you for contacting Aspose Support team.

Almost all of our APIs that provide the capability to list messages from the server, give the message’s Message ID as part of the Message Information. For example, the ExchangeMessageInfo has this property available that you can use to save at the back-end as shown in the following code sample.

Once the Message IDs are stored at back-end, you can mark these as either fetched or not. The unfetched messages can then be fetched using the ListMessagesById method.

Please try it at your end and share your feedback with us.


IEWSClient client = GetAsposeEWSClient();

ExchangeMessageInfoCollection msgsColl = client.ListMessages(client.MailboxInfo.InboxUri);

foreach(ExchangeMessageInfo msgInfo in msgsColl)