Hello,
I am new in web programming. I need to get all contacts (name, mail) from Microsoft Exchange. I found this code here (http://www.aspose.com/docs/display/emailnet/Get+Contacts+Information+from+Exchange+Server ) :
// Create instance of IEWSClient class by giving credentials
IEWSClient client = EWSClient.GetEWSClient(“https:[//outlook.office365.com/ews/exchange.asmx ](https://outlook.office365.com/ews/exchange.asmx)”, “testUser”, “pwd”, “domain”);
// List all the contacts
Contact[] contacts = client.GetContacts(client.MailboxInfo.ContactsUri);
// Loop through all contacts
foreach (MapiContact contact in contacts)
{
// Display name and email address
Console.WriteLine("Name: " + contact.NameInfo.DisplayName +
", Email Address: " + contact.ElectronicAddresses.Email1);
}
I think that is the right way. I just need to apply it (using Aspose.Email Cloud). Can anyone help me with the whole process? Many thx for your time and help!
Mato