954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Access your Outlook application using PHP?

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/articles/Bogomil/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/venkatesan20030501.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?

:sad:

bhavna_816
Junior Poster
116 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You