PHP + MAPI

liunx

Guest
Hi everyone,

I am trying to use MAPI in PHP. I have downloaded some codes from (URL address blocked: See forum rules)

I have also downloaded and registered the CDO.DLL from Microsoft website. Instead of using "$oFldr = $oNs->GetDefaultFolder(olFolderInbox);", i have changed it to "$oFldr = $oNs->GetDefaultFolder(6);" because "olFolderInbox" is not recognized outside of Outlook, 6 is the actual value of olFolderInbox.


However, when i run the script, OUTLOOK.EXE is running in the background, after that i have got the following errors:


Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Office Outlook<br/><b>Description:</b> Cannot complete the operation. You are not connected.'

And my OUTLOOK.exe automatically disappeared in background (from Task Manager).

Do you guys have the same problem before ? Where could it gone wrong ?
 
Back
Top