944,016 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 5301
  • PHP RSS
Jan 5th, 2007
0

Access your Outlook application using PHP?

Expand Post »
I wrote a PHP script to "Access your Outlook application using PHP".
Actually I wanted to access my Microsoft Outlook Calender to be accessed on web.
I have tried for the following link
http://www.programmersheaven.com/art...ogomil/art.htm
But I was getting the error
Warning: (null)(): Unable to obtain IDispatch interface for CLSID {0006F03A-0000-0000-C000-000000000046}: Access is denied
in the line
function getUnreadinInbox(){
#get unread messages from the Inbox Folder
###ERROR HERE
$oOutlook = new COM("Outlook.Application");
$oNs = $oOutlook->GetNamespace("MAPI");
$oFldr = $oNs->GetDefaultFolder(olFolderInbox);
$UnreadMessagesInFolder = $oFldr->UnReadItemCount;
return $UnreadMessagesInFolder;
}
then i went through the link
http://www.phpbuilder.com/columns/ve...01.php3?page=1
For Interfacing With COM Objects Under Windows NT/2k/XP
But again I am getting error in php.exe-Application error"The memory could not be read"
What should I do?

Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
bhavna_816 is offline Offline
116 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Content management system
Next Thread in PHP Forum Timeline: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC