Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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.


Report this thread to moderator Post Follow-up to this message
Old Post
djaekimaar@hotmail.com
09-24-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.