Comments (7)
Can you post your code? It looks like an authentication issue, so how you're authenticating would be important
from php-ews.
require_once 'php-ews-master/EWS_Exception.php';
/*
require_once 'php-ews-master/EWSAutodiscover.php';
require_once 'php-ews-master/EWSType.php';
require_once 'php-ews-master/ExchangeWebServices.php';
require_once 'php-ews-master/NTLMSoapClient.php';
require_once 'php-ews-master/NTLMSoapClient/Exchange.php';
*/
//jamesiarmes#119
$host = "mail.answerfortsmith.com";
$username = '';
$password = '';
function __autoload($class_name)
{
$base_path = 'php-ews-master';
$include_file = $base_path . '/' . str_replace('_', '/', $class_name) .
'.php';
return (file_exists($include_file) ? require_once $include_file :
false);
}
$ews = new ExchangeWebServices($host, $username, $password);
$request = new EWSType_FindItemType();
$request->ItemShape = new EWSType_ItemResponseShapeType();
$request->ItemShape->BaseShape =
EWSType_DefaultShapeNamesType::ALL_PROPERTIES;
$request->ContactsView = new EWSType_ContactsViewType();
$request->ContactsView->InitialName = 'a';
$request->ContactsView->FinalName = 'z';
$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();
$request->ParentFolderIds->DistinguishedFolderId = new
EWSType_DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id =
EWSType_DistinguishedFolderIdNameType::CONTACTS;
$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;
$response = $ews->FindItem($request);
echo '
'.print_r($response, true).'';
On Fri, Sep 30, 2016 at 4:49 AM, Garethp [email protected] wrote:
Can you post your code? It looks like an authentication issue, so how
you're authenticating would be important—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFRKSTRE83tNaEZTqwXTJfdLOdHDjYE_ks5qvEd0gaJpZM4KHJmP
.
from php-ews.
connection is happening using $host $username $password
autodiscover is giving error
and contact or calendar related stuff also gives error.
On Sat, Oct 1, 2016 at 8:27 PM, Nagesh Sawant [email protected] wrote:
require_once 'php-ews-master/EWS_Exception.php';
/*
require_once 'php-ews-master/EWSAutodiscover.php';
require_once 'php-ews-master/EWSType.php';
require_once 'php-ews-master/ExchangeWebServices.php';
require_once 'php-ews-master/NTLMSoapClient.php';
require_once 'php-ews-master/NTLMSoapClient/Exchange.php';
*///jamesiarmes#119
$host = "mail.answerfortsmith.com";
$username = '';
$password = '';function __autoload($class_name)
{
$base_path = 'php-ews-master';
$include_file = $base_path . '/' . str_replace('_', '/', $class_name)
. '.php';
return (file_exists($include_file) ? require_once $include_file :
false);
}$ews = new ExchangeWebServices($host, $username, $password);
$request = new EWSType_FindItemType();$request->ItemShape = new EWSType_ItemResponseShapeType();
$request->ItemShape->BaseShape = EWSType_DefaultShapeNamesType:
:ALL_PROPERTIES;$request->ContactsView = new EWSType_ContactsViewType();
$request->ContactsView->InitialName = 'a';
$request->ContactsView->FinalName = 'z';$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsTy
pe();
$request->ParentFolderIds->DistinguishedFolderId = new EWSType_
DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_
DistinguishedFolderIdNameType::CONTACTS;$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;
$response = $ews->FindItem($request);
echo ''.print_r($response, true).'';On Fri, Sep 30, 2016 at 4:49 AM, Garethp [email protected] wrote:
Can you post your code? It looks like an authentication issue, so how
you're authenticating would be important—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFRKSTRE83tNaEZTqwXTJfdLOdHDjYE_ks5qvEd0gaJpZM4KHJmP
.
from php-ews.
You're posting an issue on the wrong Github. Your code looks like it belongs from this library. If you wanted to use my library, it would look like this
from php-ews.
is there a way to update contact email to null or is there any way to
delete that email address
On Mon, Oct 17, 2016 at 8:55 PM, Garethp [email protected] wrote:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFRKSQtAK5tgPfQ_HpyOdOhWGk2aZlblks5q05NVgaJpZM4KHJmP
.
from php-ews.
Hi,
I was trying to implement this new ews thing I dont understand how its
going to work.
in the following code this line gives error $request = new GetItemType();
what is going wrong can you suggest me.
On Sun, Nov 13, 2016 at 9:47 PM, Nagesh Sawant [email protected]
wrote:
is there a way to update contact email to null or is there any way to
delete that email addressOn Mon, Oct 17, 2016 at 8:55 PM, Garethp [email protected] wrote:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFRKSQtAK5tgPfQ_HpyOdOhWGk2aZlblks5q05NVgaJpZM4KHJmP
.
from php-ews.
What are you even trying to do? And why are you responding to this old closed ticket, instead of creating a new one?
from php-ews.
Related Issues (20)
- Create a contact
- internetMessageHeaders HOT 1
- BUG FreeBusyResponse array HOT 1
- toRecipients getting null values for inplace archive mails
- Update Mail Item -> Categorize Email HOT 1
- PHP 8.2 - Deprecated dynamic properties HOT 5
- Oauth is not working with Exchange 2013
- Issue with using toRecipients property in EWS restriction HOT 2
- Daylight Savings
- How to get medias appointment
- Update contact with ExtendedProperty
- Exceptions
- Set a calendar event with custom identifier, so that I can (later on) GET an event by the same identifier HOT 3
- Change "busy" status for event. HOT 2
- Checking if an item exists (by $itemId and $changeKey) results in FATAL ERROR if the object is not found - How to handle this? HOT 1
- Also delete recurring events when master event is deleted? HOT 1
- getLegacyFreeBusyStatus() does not return WorkingElsewhere HOT 1
- Authentication error after Exchange Extended Protection was enabled HOT 2
- Add Kerberos support
- How to forward an Email
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ews.