ListMessages From Field isn't filled

We are using the IEWSClient Interface to connect to an Exchange Server 2016 and Exchange Server 2013.


In both cases if we use “ListMessages” and trying to populate a user grid to list all user e-mails, we can see that the “ExchangeMessageInfo” Class has no “From” filled.

We experienced it with the current version 17.4.0.0.

I tested the old version 5.6.0.0 which worked fine, however we upgraded to support Exchange 2016.

Hi Ralf,

Thank you for contacting Aspose support team.

I have tested different exchange accounts including Outlook office365 account and used ListMessages() function. It is observed that From field is populated properly with Aspose.Email for .NET 17.4.0. It is requested that some test account credentials may be provided temporarily for our testing here. It will help us to re-produce the scenario and provide assistance accordingly. Following sample code is used for testing.


static void Main(string[] args)
{
    License lic = new License();
	lic.SetLicense("Aspose.Total.lic");
    IEWSClient client = GetExchangeEWSClient365();
    var msgs = client.ListMessages();
    
    foreach(var info in msgs)
        Console.WriteLine(info.From);
    Console.WriteLine("Done..");
    Console.ReadKey();
}

private static IEWSClient GetExchangeEWSClient365()
{
    const string mailboxUri = "https://outlook.office365.com/ews/exchange.asmx";
    const string domain = @"";
    const string username = @"username";
    const string password = @"password";
    NetworkCredential credentials = new NetworkCredential(username, password, domain);
    IEWSClient client = EWSClient.GetEWSClient(mailboxUri, credentials);
    return client;
}