Dear Kashif,
I got the temporary license for the Email.dll, it fixed many errors but i’m still getting an error when trying to get emails from Sent Items.I’m using the following command
ExchangeMessagePageInfo pageInfo = client.ListMessagesByPage(folderInfo.Uri.ToString(),itemsPerPage);
it tells me "The specified string is not in the form required for an e-mail address."
i did more investigation it seems im getting this error when the Subject is null
Best Regards,
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);
}