Dear Kashif,
ExchangeMessagePageInfo pageInfo = client.ListMessagesByPage(folderInfo.Uri.ToString(),itemsPerPage);
Dear Kashif,
Hi Nassim,
Thank you for contacting Aspose support team.
I have tried this issue by using following sample code, which fetches mail having no subject from sent items folder in the test exchange account. No exception is raised and mail is retrieved successfully. Could you please share some test account credentials where such email is present with null subject? It will help us to observe the problem here and provide assistance accordingly.
IEWSClient client = GetTestAccount();
ExchangeFolderInfo folderInfo = client.GetFolderInfo("Sent Items");
ExchangeMessagePageInfo pageInfo = client.ListMessagesByPage(folderInfo.Uri.ToString(), 10);
foreach (ExchangeMessageInfo info in pageInfo.Items)
{
MailMessage mail = client.FetchMessage(info.UniqueUri);
Console.WriteLine(mail.Subject);
}