-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php ews Copy Message from inbox to other user's inbox #43
Comments
Try changing |
I get still the error that Id is malformed. Here is the message-ID to convert and the error with stacktrace: message_id=AAMkAGNkOGRhZTMyLTBiNzAtNDhkNS05ZDhkLTg0Yjg3MDg2NTQ0NABGAAAAAACff7a4yIddSrJmA51rrq6YBwCmngR8iTVkSIs9XxAAR0L0AAAAAAEMAACmngR8iTVkSIs9XxAAR0L0AAAMM6NyAAA= PHP Fatal error: Uncaught exception 'garethp\ews\API\Exception\ExchangeException' with message 'Id is malformed.' in C:\Bitnami\wampstack-5.5.26-0\apache2\htdocs\best_portal_test\include\vendor\garethp\php-ews\src\API\ExchangeWebServices.php:426 |
You're fetching the ItemId's straight from the server, instead of storing them in your DB. Why don't you just specify the same Exchange version in every client you create. In some places you do |
Ok thanks. Now it works! You've found my problem! My error was, that I had forgotten to give always the exchange version in my clients. |
I would highly recommend you swap all of that to my library by the way. It will cut down your code a lot |
With php-ews is there a possibility to copy a message from an inbox to other user's inbox?
The goal is that a message is created by php-ews in a web interface, saved to a shared inbox and after this save a copy of the message to user's inbox.
The problem is in converting message-ID from Exchange 2013 in function convert_id()
My code so far:
file convert_id.php contains the converter function:
The text was updated successfully, but these errors were encountered: