php-ews

Getting emails after a specific date with php-ews (Exchange Web Services)

怎甘沉沦 提交于 2021-02-07 08:53:55
问题 In my PHP script, I need to figure out how to retrieve all emails that are either after a specified message ID or after a specific date (Either will work, I just need to retrieve emails that are new since the last time I scraped the inbox). This inbox is getting thousands of emails a day, and I can't delete any emails for 30 days. For the initial import I was just doing an offset from the beginning of the inbox, but obviously that won't work once we start cleaning out emails. I think I have

Getting emails after a specific date with php-ews (Exchange Web Services)

时光总嘲笑我的痴心妄想 提交于 2021-02-07 08:47:18
问题 In my PHP script, I need to figure out how to retrieve all emails that are either after a specified message ID or after a specific date (Either will work, I just need to retrieve emails that are new since the last time I scraped the inbox). This inbox is getting thousands of emails a day, and I can't delete any emails for 30 days. For the initial import I was just doing an offset from the beginning of the inbox, but obviously that won't work once we start cleaning out emails. I think I have

php-ews Access Global Address Book

浪子不回头ぞ 提交于 2020-01-05 11:12:47
问题 I'm working with the php-ews library to integrate with exchange. I was wondering if there was any way to access the global address book, I've searched the documentation and nothing comes up. I would like to access it so I can view room resources. Thanks 回答1: I don't think that the GetRooms method was ever added to php-ews. It seems they just quit development. see.. https://github.com/jamesiarmes/php-ews/issues/91 As a workaround, if your rooms exist in Active Directory, you could do an LDAP

PHP SoapServer formatting

亡梦爱人 提交于 2019-12-11 19:20:07
问题 I am new to SOAP and trying to format a SOAP response using PHP's SoapServer class. It might be useful to know that this is for an EWS Push Subscription callback service and that I am using the php-ews library. I have managed to subscribe to the EWS Push Subscription but am having trouble formatting the reply which EWS is expecting from my callback service. I need the following SOAP response returned by my PHP SOAP service: <s:Envelope xmlns:s= "http://schemas.xmlsoap.org/soap/envelope/"> <s

PHP-EWS: Set multiple extended properties on calendar item

不想你离开。 提交于 2019-12-11 17:12:51
问题 Is it possible to set multiple custom properties on a calendar item using PHP EWS? I haven't been able to find any documentation on this except this example of retrieving extended properties. I was able to get it working for a single field, but I'm wondering if you can set multiple custom properties. The API seems to allude to that possibility. For example, the following properties are defined in ExtendedPropertyType.php: class EWSType_ExtendedPropertyType extends EWSType { /** *

PHP-EWS “Soap client returned status of 404”

心不动则不痛 提交于 2019-12-10 11:17:20
问题 So, I'm using php-ews library to connect to my Microsoft Office 365 Exchange Email account to read emails. I've connected successfully to it and I have managed to retrieve a list of emails that I need. Now the problem is that I cannot get message body. Reading documentation about Exchange Web Services it says that body cannot be fetched with FindItem(), only with GetItem(), and that's okay. Now the problem I'm seeing is following: I tried all possible examples I could find about this, and the

php-ews class library always returns null

半世苍凉 提交于 2019-12-08 07:39:23
问题 I am trying to make SOAP calls to our Exchange server using the classes I found here: http://code.google.com/p/php-ews/ I have coded up a few examples, starting with the basic example as below and no matter what I try and do this always returns null. $ews = new ExchangeWebServices('exchange.example.com', 'user', 'password'); $request = new EWSType_FindFolderType(); $request->Traversal = EWSType_FolderQueryTraversalType::SHALLOW; $request->FolderShape = new EWSType_FolderResponseShapeType();

Access another mailbox calendar events with PHP-EWS

╄→гoц情女王★ 提交于 2019-12-07 18:52:21
问题 In PHP-EWS library (https://github.com/jamesiarmes/php-ews) I can access the calendar events of a specific user using this code: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey) In all the library features we always use the authentication for a single user: $ews = new ExchangeWebServices($host, $username, $password, $version); However how can I get the calendar events from another user's mailbox? If I have an account in LDAP with admin privileges is

php-ews class library always returns null

女生的网名这么多〃 提交于 2019-12-06 14:40:42
I am trying to make SOAP calls to our Exchange server using the classes I found here: http://code.google.com/p/php-ews/ I have coded up a few examples, starting with the basic example as below and no matter what I try and do this always returns null. $ews = new ExchangeWebServices('exchange.example.com', 'user', 'password'); $request = new EWSType_FindFolderType(); $request->Traversal = EWSType_FolderQueryTraversalType::SHALLOW; $request->FolderShape = new EWSType_FolderResponseShapeType(); $request->FolderShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES; $request-

PHP-EWS “Soap client returned status of 404”

十年热恋 提交于 2019-12-06 14:06:40
So, I'm using php-ews library to connect to my Microsoft Office 365 Exchange Email account to read emails. I've connected successfully to it and I have managed to retrieve a list of emails that I need. Now the problem is that I cannot get message body. Reading documentation about Exchange Web Services it says that body cannot be fetched with FindItem(), only with GetItem(), and that's okay. Now the problem I'm seeing is following: I tried all possible examples I could find about this, and the code doesn't have any errors, it just says "Soap client returned status of 404". If anyone has any