Ask a Question related to PHP Development, Design and Development.
-
djaekimaar@hotmail.com #1
Getting to Outlook
Hello can anyone help. I am trying to get to the Contacts located in
Outlook via PHP. I have seen a way to do it via VB but for obvious
reasons don't want to. The code I have is
// starting Outlook
$word = new COM("Outlook.application") or die("Unable to instanciate
Word");
echo "Loaded OUtlook, version {$word->Version}\n";
define(olFolderInbox,6);
$oNs = $word->GetNamespace("MAPI");
$oFldr = $oNs->GetDefaultFolder(olFolderInbox);
$UnreadMessagesInFolder = $oFldr->UnReadItemCount;
echo "Number : $UnreadMessagesInFolder";
//free the object
$word->Release();
$word = null;
?>
When it runs it hangs. An instance of Outlook appears in the task
manager but that is it. If I remove the define statement, (this was
not in the example I foound for word) Then I get the Loaded Outlook
message. Could it be service of some sort I need to be running. I have
Windows XP Professional and have turned on all the services that
remotely lookk like they could be COM related. If I run a similar
script for Word it works.
Any help would be much appreciated.
djaekimaar@hotmail.com Guest
-
first use the outlook.
jsut for a test -
outlook calendar
Thanks, It seems to pick up my calendar on my local client workstation. Anyway for it to pick up a group calendar? -
Outlook
Where can I download the latest version of Outlook? I have Outlook 2002. I'm having problems with it crashing and having to reinstall. --... -
Deleted Box in Outlook
Outlook Express questions should be posted to the Outlook Express newsgroup: news:microsoft.public.windows.inetexplorer.ie6_outlookexpress. --... -
Outlook Express 6
Just changed to WinXP. Whenever I receive mail with an attachment, I receive the following message: "OE removed access to the following unsafe...



Reply With Quote

