I am using a php-ews to access our EWS server. I found an example for creating a calendar event as follows:
$request = new EWSType_CreateItemType(); $request->SavedItemFolderId->DistinguishedFolderId->Id=EWSType_DistinguishedFolderIdNameType::CALENDAR; $request->SavedItemFolderId->DistinguishedFolderId->Mailbox->EmailAddress = "firstname.lastname@example.org"; ...
My question: what is DistinguishedFolderId->Mailbox->EmailAddress and what does it do? I know this attribute is optional.
preguntado el 28 de mayo de 14 a las 13:05
The EmailAddress is optional if you want to access a Mailbox folder in another users mailbox eg if your using user1's credentials and you want to access user2's Inbox this is when you would use User2's email address in that attribute. If it is omitted then User1 Mailbox would be returned.
In EWS this is referred to as Delegate access there is a discussion between the difference between delegate and Impersonation on http://blogs.msdn.com/b/exchangedev/archive/2009/06/15/exchange-impersonation-vs-delegate-access.aspx