We’re considering to purchase Aspose.Email for Java to develop an app that will scan Exchange Server.
We intend to use EWS where possible and were looking for a functionality to fetch the email address in some address list that’s defined in Exchange Server (possibly the GAL).
This seems to be possible using EWS’ “FindPeople” operation.
Is this possible with Aspose.Email for Java?
If not, is it going to be added or can we request to add it (if we purchase)?
For fetching email addresses, Aspose.Email allows you to retrieve contact information from an Exchange Server directly or using EWS. Please follow the link below explaining how you can
Get Contacts from Exchange Server.
Resolve Contacts using Contact Name.
Fetch Particular Contact using Contact Id. [https://docs.aspose.com/display/emailjava/Working+with+Contacts+On+Exchange+Server+using+EWS ](https://docs.aspose.com/display/emailjava/Working+with+Contacts+On+Exchange+Server+using+EWS)
Moreover, you may use the following sample code for accessing the global address list returning MapiContact collection.
The sample code you gave looks promising for fetching the entire GAL. I overlooked the listMailboxes() method when searching through Aspose.Email docs.
However, I was looking for a way to fetch only a subset of the GAL, just the contacts of an address list (preferably only a list of SMTP email addresses to keep this operation with low latency and throughput).
I saw that this can be done with the FindPeople operation that was added to EWS in Exchange 2013.
For example, Microsoft’s C# sdk for EWS supports the FindPeople operation (see the FindPeople() overloads in the ExchangeService class).
However, Microsoft’s Java sdk for EWS lacks this functionality and I was hoping to find it in Aspose.Email.
Is there support for such functionality in Aspose.Email for Java?
If not, is it going to be added to the library?
Aspose.Email for working with Exchange Server using EWS provides functionality to get all contacts from a specified client’s mailbox info. Please have a look on the following code sample:
IEWSClient client = EWSClient.getEWSClient("https://exchange.domain.com/ews/Exchange.asmx", "username", "password", "domain.com");
// List all the contacts
Contact[] contacts = client.getContacts(client.getMailboxInfo().getContactsUri());
// Loop through all contacts
for (Contact contact : contacts) {
// Display name and email address
System.out.println("Name: " + contact.getDisplayName() + ", Email Address: " + contact.getEmailAddresses().get_Item(0));
}
Moreover, we have logged your specific requirements for further investigation and possible enhancement under issue ID “EMAILJAVA-34425”. You will automatically be notified here once we have more information to share with you.
The issues you have found earlier (filed as EMAILJAVA-34425) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.