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
7
votes
2 answers

PHP-EWS move email to folder

I am using php-ews to get attachment and save them to specific directory and now i need to move the mail into another folder. Im stuck in here : $client = new Client($host, $username, $password, $version); $request = new…
Chopchop
  • 2,899
  • 18
  • 36
5
votes
1 answer

Exchange web services (EWS): Send "meeting invitations" for meetings stored in a public folder calendar

It's been discussed already here on stackoverflow ( Appointment.Save and Appointment.Update always set IsMeeting to true ) that EWS has limitations on how meeting invitations can't be sent automatically when creating new calendar items / meetings…
nowhere
  • 1,558
  • 1
  • 12
  • 31
4
votes
1 answer

PHP-EWS - Subscription / PushNotification - complete example

after two frustrating days I give up. I have one virtual maschine "admx" with Win2012R2 + Exchange 2013 (Trailversion) and one virtual maschine "webserver" with a IIS-Webserver+PHP. Make a new Subscription - sub.php:
4
votes
2 answers

Reply email using php-ews

I am using php-ews for reading the exchange mailbox. However, i would like to pick an e-mail from the inbox and reply to that e-mail, with the email history and send the response. Below is the code that i am using to get the specific email from the…
Guns
  • 2,678
  • 2
  • 23
  • 51
3
votes
1 answer

Getting unread mail from exchange web services via PHP

How do you get all unread mail in a users' exchange mailbox using PHP while using this class ? I figured to first list a folders contents like this: $ews = new ExchangeWebServices("mailserver.domain.local", "user", "pass"); $request = new…
Sander
  • 1,402
  • 2
  • 21
  • 44
3
votes
1 answer

Getting Single Mail via garethp/php-ews

Code: $api = MailAPI::withUsernameAndPassword($server, $username, $password); $folder1 = $api->getFolderByDisplayName('PubFolder', DistinguishedFolderIdNameType::PUBLICFOLDERSROOT); $subFolder1 = $api->getFolderByDisplayName($data['mailfolder'],…
Shaeldon
  • 873
  • 4
  • 18
  • 28
3
votes
2 answers

PHP EWS Creating a Callback Token

I currently use the PHP-EWS project to help automatically log emails from multiple mailboxes. The system was working great until recently I started to get a "The request failed with HTTP status 401: Unauthorized." error. After contacting Microsoft,…
jtcrow
  • 53
  • 9
3
votes
0 answers

How to catch a calendar item created event using push notifications?

I'm trying to fire an event when I create a calendar item (appointment) in exchange, using PHP-EWS. Currently, I am able to fire an event when an email is sent: $subscribe_request = new \EWSType_SubscribeType(); $pushSubscription = new…
RobinvdA
  • 1,313
  • 2
  • 13
  • 28
3
votes
2 answers

PHPEWS create event on public calendar

I'm attempting to plug a php based calendar management system into exchange 2007 calendars. I have the below code setup at present. $subject = 'Appointment with ..'; $request = new EWSType_CreateItemType(); $request->Items = new…
user1372212
  • 293
  • 1
  • 6
  • 21
3
votes
1 answer

PHP-EWS fails on more than one attachment

I use James Armes's PHP-EWS library. The following code works fine with single attachments, but fails with multiply files. MessageDisposition = 'SaveOnly'; $msgResponse = $ews->CreateItem($msgRequest); $msgResponseItems =…
Miklos
  • 253
  • 3
  • 13
3
votes
1 answer

What is DistinguishedFolderId->Mailbox->EmailAddress in php-ews?

I am using a php-ews to access our EWS server. I found an example for creating a calendar event as follows: $request = new…
AVK
  • 645
  • 9
  • 22
3
votes
1 answer

Delete recurring calendar item with PHP EWS?

The past couple of days I have been learning to use the PHP-EWS class for reading/updating/deleting calendar entries. I have been able to create single events, read all calendar events for a day and remove events. My problem is that I cannot find…
DanielJay
  • 292
  • 3
  • 13
3
votes
2 answers

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

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…
Brandon
  • 16,382
  • 12
  • 55
  • 88
2
votes
1 answer

ews php - Push notifications vs Streaming notifications

I'm trying to sync all calendars in my exchange server with my app, and for that, I am using PHP-EWS: jamesiarmes/php-ews! After some research, I found 2 options to consider: Push notifications - I've worked with something similar before, in this…
2
votes
2 answers

PHP-EWS "Soap client returned status of 404"

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…
AwesomeGuy
  • 1,059
  • 9
  • 28
1
2 3 4 5 6 7