Questions tagged [php-ews]

PHP Exchange Web Services

The PHP Exchange Web Services library (php-ews) is intended to make communication with Microsoft Exchange servers using Exchange Web Services easier.

It handles the authentication required to use the services and provides an object-oriented interface to the complex types required to form a request.

96 questions
0
votes
1 answer

cron job with php-ews to get only new emails from Exchange server

I need a cron job to obtain only the new emails received in a Exchange server since the last time it synchronized. I coded the same with imap servers, and it was easy to get the emails since an ID. So I save the last ID at the end of the for cycle…
0
votes
1 answer

Avoid duplicate items when creating contact in Php-Ews

I'm using https://github.com/Garethp/php-ews/ library to access to my public contact folder on Exchange server. This is how i create a contact. $api = API::withUsernameAndPassword($server, $user, $pass); $folder =…
Biro
  • 199
  • 3
  • 16
0
votes
1 answer

EWS SyncFolderItems for specific date range

Is it possible to syncFolderItems for a calendar with EWS for a specific date range, like the current week? If so, how (I'm using php-ews as a client)?
juacala
  • 2,155
  • 1
  • 21
  • 22
0
votes
1 answer

PHP EWS Subscription Response error encoding object has no property

I'm using the garethp/php-ews library to download new email messages which are pushed to my script (via Push Notifications). As part of the push notifications I need to respond with an "OK" status; my attempt below is throwing a SOAP-Error: PHP…
AJefferiss
  • 1,628
  • 1
  • 13
  • 17
0
votes
2 answers

PHP-Ews | ErrorInvalidIdMalformed: Id is malformed

I am currently working on a script fetching subjects and attachements from an email received with Exchange. For this purpose, I have found php-ews and used one of the provided examples to retrieve the attachments. The script throws…
ilomax
  • 568
  • 1
  • 4
  • 24
0
votes
1 answer

PHP: Sending Email with Cyrillic (Ukrainian text)

Problem with sending Cyrillic Email with PHP. My side: Server IIS - Database MsSQL - email server: Exchange 2010 /communication via PHP EWS/ Reciever is UA Goverment owned company with their specific software for receiving emails. It is working with…
KarolSVK
  • 1
  • 1
0
votes
1 answer

Get all public folders / shared contacts from EWS office365 with PHP

I'm building a simple contact book from office 365, that lists all the shared contacts of my company. I was trying with Graph and EWS too, but i can't figure out what is wrong. Searching in the Microsoft Graph explorer seems to be no chance to see…
Biro
  • 199
  • 3
  • 16
0
votes
1 answer

php-ews folders do not match php-ews code at all

Installed php-ews using composer: { "minimum-stability": "dev", "prefer-stable": true, "require": { "php-ews/php-ews": "dev-master" } } The installation passed fine. Made this simple request in my project code: require_once…
Rodniko
  • 4,926
  • 20
  • 69
  • 93
0
votes
1 answer

PHP - EWS, change organizer to room mailbox email

I've been using php-ews for a month, i able to make a meeting but i want the organizer is the room email / room name that i attend the meeting so for example, i create a meeting at 8:00am - 10:00am at room1 (room1@mydomain.com), i want the organizer…
user3848402
  • 193
  • 2
  • 3
  • 15
0
votes
0 answers

PHP EWS - Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in

I am using https://github.com/jamesiarmes/php-ews library to connect to our Microsft Exchange Server 2010 SP3 but I am getting this error: Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in I am using the example provided under:…
0
votes
1 answer

Using PHP-EWS to update Automatic Replies (Out of Office)

I am attempting to develop a web interface using PHP which would allow any authorised user (specifically from the HR department) to update the Automatic Reply (Out of Office) of any active Exchange user/mailbox. I have successfully connected to the…
George
  • 64
  • 9
0
votes
1 answer

Getting HTTP 401 Unauthorized response from SOAP call using php-ews trying to connect to Exchange server

I am using the latest version (1.0.0-beta-4) of James I. Armes php-ews code (https://github.com/jamesiarmes/php-ews) to connect to a local Exchange serge (Exchange 2010 SP1). This code connects just fine to Office/365, but it is getting ah 'HTTP…
0
votes
1 answer

PHP-EWS - Find Contacts in Contact Subfolders

how can I view contacs in self created "Contact Subfolders" with "PHP-EWS"? With this Code: $request = new FindItemType(); $request->ItemShape = new ItemResponseShapeType(); $request->ItemShape->BaseShape = DefaultShapeNamesType::ALL_PROPERTIES;…
Daniel T
  • 1
  • 1
0
votes
1 answer

How to provide regular variable to Scope Resolution Operator

$version = \jamesiarmes\PhpEws\Client::$ews_version; Throws Uncaught Error: Access to undeclared static property: Where $ews_version is a client provided variable with possible values of: $ews_version = 'VERSION_2007'; $ews_version =…
Alex G
  • 3,048
  • 10
  • 39
  • 78
0
votes
1 answer

PHP library for Office365 EWS with GetRooms

Whole last week i struggled with Php libraries for EWS. I tried Package365Ews and Php-ews but both of them are missing core feature for me, or it's not documented - GetRooms. Do anyone know how to handle it, or know another library implementing…
Sajgoniarz
  • 176
  • 13