Extract EmailAddress

Hello,

how i can extract Email-Address of Receiver and Transmitter ExchangeMessageInfo

Regards,

Amir

Hi Amir,

Please see the following code sample for your kind reference. It gets the list of all messages from the inbox and writes the sender and receiver addresses from the ExchangeMessageInfo object.

Sample Code:

IEWSClient client = GetAsposeEWSClient1();
ExchangeMessageInfoCollection msgsColl = client.ListMessages("inbox");

foreach (ExchangeMessageInfo msgInfo in msgsColl)
{
    Console.WriteLine("From: " + msgInfo.From);
    Console.WriteLine("To: " + msgInfo.To);
}