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
1
vote
2 answers

php-ews Access Global Address Book

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.…
CountKyle
  • 459
  • 3
  • 15
1
vote
1 answer

Meeting Subject From Resource Mailbox PHP-EWS

Hi guys :) I am trying to take all meeting from resource meeting box, but when i try to take subject like this $subject = $event->Subject it displays name by whom meeting was created.…
1
vote
2 answers

php-ews exchange 2007 room calendar events

We're on exchange 2007 and I'm using php-ews and I want to get a list of all the bookings for a room resource. By room resource, I mean the rooms button in outlook when creating a meeting invite. The code I have so far returns items from my…
user642298
  • 41
  • 3
1
vote
2 answers

php-ews how to set importance when sending an e-mail

I am using php-ews to send mails and I cannot find a way to set the importance (priority) of a mail. Here is my code: $from = $mail['from']; $to = $mail['to']; $subject = $mail['subject']; $body = $mail['body']; $msg = new…
Georgi Bilyukov
  • 645
  • 4
  • 11
0
votes
0 answers

Create recurring CalendarItem with php-ews

Trying to implement MS Exchange api CalendarItem creation useng jamesiarmes/php-ews. Was able to create simple events and events with partisipants, but when i tried to add recurrence - nothing works. Saw similar questions - they are outdated and of…
0
votes
1 answer

php-ews (jamesiarmes\PhpEws) get UniqueBody of conversation item

I am using php-ews to read mailbox items, in order to process emails as support tickets. As some are/could be part of conversations, I want to use the UniqueBody property, to get the latest/unique part of the message. Example request: $request = new…
JustBaron
  • 2,319
  • 7
  • 25
  • 37
0
votes
2 answers

UnauthorizedException when connecting to exchange accounts using oauth2 - garethp - php-ews

I use garethp php-ews to connect EWS using oauth2. I am receiving the access token but when passing it to the mail function (getMailItems,getMailbox,getFolder....etc) following fatal error with "UnauthorizedException" is showing. Tried many ways but…
Ash
  • 21
  • 2
0
votes
1 answer

Add event on user shared calendar

I'm using Garethp/php-ews package to manage Exchange data. I'm able to read Calendar that other user shared with me, but unless they gave me write access on their Calendar (Under web client, I can add event), I'm not able to add events trough…
kl3sk
  • 136
  • 1
  • 11
0
votes
1 answer

Getting ms exchange server version using php-ews

I am using php-ews library(new version) to display the calendar events of the users in my project. The users can set their ms exchange account details in their profile and then use the calendar within my project itself. The code is like below $host…
0
votes
1 answer

Getting contact notes with garethp/php-ews

I'm using garethp/php-ews to import Exchange Contacts to a MySQL Database and export them into another Exchange Account. Everything works fine so far, but I'm not able to get the notes from the contacts. $contact->getNotes() doesn't work,…
0
votes
1 answer

Garethp/php-ews: access two different mailboxes associated to the same MS exchange user

Lib: Garethp/php-ews MS Exchange version: 2016 I have two mailboxes under the same login. mail1@example.com mail2@example.com Authorization: $ews = API::fromUsernameAndPassword('example.com', 'mail1@example.com', 'some_pass'); I can reach all the…
Bounce
  • 2,066
  • 6
  • 34
  • 65
0
votes
1 answer

How to forward mail with php-ews

I'll try to forward a mail with php-ews, but can't get it to work. I have read the documentation for XML EWS https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-respond-to-email-messages-by-using-ews-in-exchange…
J. Mal
  • 37
  • 1
  • 6
0
votes
1 answer

PHP-EWS (GarethP) setReplyTo

Using PHP-EWS (GarethP), I am attempting to setReplyTo like this: use garethp\ews\API\Type; use garethp\ews\MailAPI; $api = MailAPI::withUsernameAndPassword("host", "username", "password"); $message = new…
JustBaron
  • 2,319
  • 7
  • 25
  • 37
0
votes
1 answer

PHP-EWS : creating a read only calendar event

I'm creating calendar events as per following example : https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/createitem-operation-calendar-item I'm using PHP-EWS to achieve it. My code works fine. Although, I want to…
Invincible
  • 1,418
  • 18
  • 23
0
votes
1 answer

Providing an ExtendedProperty to ReplyAllToItem

When replying to an email the send request happens asynchronously which means that the message id is not returned in the response. According to Microsoft the solution is to add an ExtendedProperty to the message to act as a unique id which can later…
Developer
  • 736
  • 7
  • 30