Hi,
I tried to access Lotus Notes email using PHP.
I have a working Lotus Notes Client (6.0.3) which I use everyday. Then I installed PHP 5.2.x (latest version).
However, I got error when creating the COM object:
$server = “dominoserver”;
$dbfile = “mail\testuser.nsf”;
$pw = “password”;
$session = new COM(“Lotus.NotesSession”);
$session->Initialize($pw);
print "Current user: " . $session->UserName . “\n\n”;
The error is:
PHP Fatal error: Uncaught exception ‘com_exception’ with message ‘Failed to create COM object `Lotus.NotesSession’: Invalid syntax
Anyone know why I got this error? and how to fix it?
Thanks.