How To Connect Exchange Server With PHP

in this tutorial will tell you how to create connection with your outlook exchange services,this is first step of ‘to get mail list from exchange server’.Today i got work regrading fetch all email from inbox and download all attachment of email store into hard drive.

So here i will tell you first steps `to connect PHP with exchange server`, i am very disappointing from Microsoft he is providing exchange api class for C# but not PHP, i would like to thanks to jamesiarmes and his team, he is providing ews API for PHP.I am using this api to connect PHP with EWS.
ews-php

You can also check other recommended tutorial of Exchange Api,

As per API “This library makes Microsoft Exchange 2007 and 2010 Web Services easier to implement in PHP. This library requires PHP 5.2+ with the SOAP and cURL extensions installed. This library makes use of the NTLMSoapClient Class by Thomas Rabaix.”

$ews = new ExchangeWebServices('servername', 'username', 'pass', $serverVer);
servername = 'exchanger server name';
username: email username
pass: email password
exchange : ExchangeWebServices::VERSION_2010

4 thoughts on “How To Connect Exchange Server With PHP

  1. hi im a little confused and new to ews. i am wondering if this is the complete code? i mean, the way variables servername username etc are declared is not …. err … correct?

Leave a Reply

Your email address will not be published.