rileydutton / Exchange-Web-Services-for-PHP

A basic library for interacting with Exchange Web Services using PHP 5.
MIT License
91 stars 42 forks source link

error while using mark_message_as_read #28

Open eyyupbal opened 7 years ago

eyyupbal commented 7 years ago

Hi,

I can get emails without error using get_message function. However, when I want to mark the read e-mail with the mark_message_as read function, I get the following error.

A PHP Error was encountered

Severity: Error Message: SOAP-ERROR: Encoding: object has no 'Path' property Filename: lib/ExchangeClient.php Line Number: 624 --> $response = $this->client->UpdateItem($request);

My code blocks like this:

$ec = new ExchangeClient();
$ec->init("xxxxx", "xxxxx", NULL, "http://myexchangedomain/EWS/Services.wsdl");
$result = $ec->get_messages('10', FALSE, 'inbox', TRUE);
$ec->mark_message_as_read( $result );