Get outlook mail messages reading in reverse order

Dear Team,

Get Outlook mail message activity is reading mails in the order from last-received-mail to first-received-mail).

Ideally, it should read the mail in the order from first-received-mail to last-received-mail.

Could you please help me on this issue.

Once you get the mail message list, sort the emails. Try the following query -

mailList = mailList.OrderBy(Function(x) x.Headers("date")).ToList

4 Likes

Thankyou @KarthikByggari.
I will try it out.

1 Like