How to use Aspose.Email Cloud to get all contacts from Microsoft Exchange?

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

Hi,

Thank you for contacting Aspose Support team.

Aspose.Email for Cloud API does not have any such feature of connecting to Cloud service for getting this information. You can find a list of supported features by our cloud API here. Please have a look at these for your reference and let us know your feedback.

Ok, thank you. So it doesn’t need to be a Cloud solution. I just need to run the code what I have written beyond. What do I need to accomplish it?


Thx!

Matej

Hi Matej,

If your email server is Exchange Server 2003 or 2007, you can use the API’s ExchangeClient class for connecting to the Exchange Server. However, if you are using 2007 and above with Exchange Web Service (EWS) support, you can use the API’s IEWSClient to connect to the server. Please have a look at our documentation article, Connecting to Exchange Server, for further instructions in this regard. You may also visit our documentation section, Programming with Exchange Server, to get further information about various functionality that you can acheive using our API. Please feel free to write to us in case of any other query.

Moved here: How to use Aspose.Email Cloud to get all contacts from Microsoft Exchange? - Free Support Forum - aspose.cloud