I am trying to read Lotus notes 8.5.3 emails from a remote server using PHP code.
It looked pretty straight when I read emails from Gmail using below code. But the same code did not connect to Lotus notes though the remote server supported POP3 on port 110 (I'm able to access emails on a web browser, I think that is the Web Access Lite mode)
<?php
class Email_reader {
// server connection
public $conn;
private $server = "{imap.gmail.com:993/imap/ssl/novalidate-cert/norsh}Inbox";
private $user = '[email protected]';
private $pass = '123';
function __construct() {
$this->connect();
}
function close() {
imap_close($this->conn);
}
function connect() {
try {
$this->conn = imap_open($this->server, $this->user, $this->pass) or die("Can't connect to:'$this->server': " . imap_last_error());
echo 'If you see this, we got IMAP working';
}
catch(Exception $e) {
echo 'error Message: ' .$e->getMessage();
}
}
}
$obj = new Email_reader();
echo "-------------------------00-------------------------";
$obj->close();
?>
I tried diff server url formats in the above code:
{server.com:110/pop3}INBOX
{server.com:110/pop3/novalidate-cert}INBOX
Can someone point me,
Thanks.
Domino Web Access Lite does not use POP3. It uses HTTP.
Domino servers can support POP3, but it is not enabled by default and in most cases it probably remains disabled. You will have to talk to your Domino server's administrators in order to see if they are willing to enable it for you. You will probably need a very good reason in order to convince them to do this.
If you are running PHP on a Wndows machine that has Lotus Notes or Domino installed, then you can access Domino data on your server using the Domino COM objects, which is described in this old article on IBM's web site.