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
0 answers

PHP-EWS : How to connect to exchange with Windows Auth.(without using username/password)

I've a php page which I want to connect to MS Exchange through Windows authentication for sending mail. Everything I've found is how to connect with user/password which works great but not exactly what I want. Is there a way to do this ? Thank you
BigPino
  • 113
  • 1
  • 10
0
votes
1 answer

Exchange Web Service get Public Subfolder with PHP-EWS

I'm using PHP-EWS (https://github.com/jamesiarmes/php-ews) inside a cakePHP application. The goal is to read E-Mails from a "Public Folder" from the exchange server. The Problem is I can only read the first "Dimension" of public folders and can't…
M41DZ3N
  • 326
  • 1
  • 4
  • 19
0
votes
1 answer

php autoload not loading correctly?

Using php-ews I try to create a calendar event by example (just to get the hang of it): require $server_path.'scripts/ews/vendor/autoload.php'; use garethp\ews\API; use garethp\ews\API\Enumeration; use garethp\ews\API\Type; $ews =…
osomanden
  • 599
  • 1
  • 10
  • 26
0
votes
1 answer

Having trouble setting php-ews password from POST

for some reason, if I manually set the password (ie $password = "myPassword") everything works fine. However if the password is set from a post (ie $password = $_POST['password']) I get this error: Uncaught exception 'EWS_Exception' with message…
Dave Smith
  • 177
  • 1
  • 3
  • 11
0
votes
1 answer

set category color via php-ews in Outlook

Hi I'm currently stucked in how to set a category color via php-ews when creating or updating an calendar event. I'm using an exchange 2013 server. See the basic example below:
rogaa
  • 370
  • 2
  • 16
0
votes
1 answer

Exception handling ExchangeWebServices php-ews

I use https://github.com/jamesiarmes/php-ews library to access my exchange account. If I used correct credentials to create a ExchangeWebServices object, I get accurate response. $ews = new ExchangeWebServices("outlook.office365.com", "tes@abc.com",…
Pravin Ajaaz
  • 107
  • 6
0
votes
1 answer

link MS Exchange and PHP with ExchangeWebServices?

I'm currently studying computer science and in my work experience my work tutor proposed me to send requests for appointments via a site in PHP (realised by me) to my tutor Microsoft EXCHANGE agenda's. Unfortunately I don't know how to do this....…
kadox8
  • 1
  • 1
0
votes
1 answer

Php ews Wrong Version

Im using the php-ews script from https://github.com/jamesiarmes/php-ews/wiki. If i run this script i always get a error message in the browser. It says not collected Exception: Wrong Version Does anybody have an idea what to do? (I load the…
Xymz
  • 21
  • 5
0
votes
2 answers

PHP-EWS: Set multiple extended properties on calendar item

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…
brawlins
  • 184
  • 2
  • 7
0
votes
1 answer

Unexpected element in result of EWS FindItem with GroupBy

I'm using EWS (Exchange Web Services) to access data from my Exchange 2013 test Server. I'm doing this using PHP with the (somewhat dated) php-ews repository: github-jamesiarmes-php-ews and the newer and composer enabled version:…
0
votes
1 answer

PHP-EWS while loop error Cannot redeclare class EwsSendEmail

I am trying to pull out emails from a SQL database and then send an email to each of those emails using EWS via PHP. But when I put the PHP-EWS code https://github.com/jamesiarmes/php-ews/ inside of a while loop it gives me the error "Cannot…
0
votes
1 answer

PHP SoapServer formatting

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…
Precastic
  • 3,742
  • 1
  • 24
  • 29
0
votes
1 answer

Php-ews: creating contact birthday's event

I am trying to add a contact in Exchange, using the php-ews and the following code: $request = new EWSType_CreateItemType(); $request->SendMeetingInvitations = 'SendToNone'; $contact = new EWSType_ContactItemType(); $contact->GivenName =…
Guerriky
  • 529
  • 1
  • 5
  • 15
0
votes
2 answers

SOAPFAULT: SOAP-ERROR: Encoding: object has no 'SearchExpression' property

This has been truly baffling for me. Two days ago I had your php-ews working perfectly with all of my EWS files using a restriction as so: $start = new DateTime('2014-06-05'); $Request->Restriction = new…
Zach Kauffman
  • 486
  • 1
  • 4
  • 17
0
votes
2 answers

Creating a contact with multiple phone numbers with php-ews

I am trying to add multiple phone numbers to a contact that I am creating with Php-Ews. There is no documentation on adding multiple numbers to a contact. Can someone help me find out how to accomplish this? here is what I have: // create a…
Zach Starnes
  • 3,108
  • 9
  • 39
  • 63