Link to home
Start Free TrialLog in
Avatar of Scoteq
Scoteq

asked on

Access Lotus Notes mailbox from java application

After lots of searching, I haven't been able to find an answer to this question. What I would like to do is access a shared Lotus Notes (7.0.2) mailbox via a java application in order to extract attachments from all mails that arrive. Firstly is this possible, and second how?

This is the sort of thing I'm trying (just trying to connect to the database, I'll worry about extracting the attachements later)

      NotesThread.sinitThread();
      Session s = NotesFactory.createSession(<server>, <username>, <password>);
      Database d = s.getDatabase(<server>, <database>);
      d.open();

.. but I get a connection refused message. I am also surprised that the code I have seen makes no reference to an id file, I though I would need this to validate the connection.

Any help greatly appreciated.

Thanks
Avatar of SysExpert
SysExpert
Flag of Israel image

see some sample code and info at

https://www.experts-exchange.com/questions/20762765/Agent-hang-up-in-Lotus-6-Client.html


https://www.experts-exchange.com/questions/10157116/Domino-5-username-password-in-Applets.html

Also depends on where you are running the code, Client or server.

I hope this helps !

ASKER CERTIFIED SOLUTION
Avatar of Scoteq
Scoteq

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad you resolved this.

Yes, the ID file is critical, since otherwise the Domino Security prevents access.

Glad you resolved this !
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator