What you are asking is a very large piece of work. IBM themselves only document how to use Lotus Notes (5+) as an email server through JavaMail(there's a Red Book on their site somewhere if you have a search around which explains this in much more detail). You will notice if you look at the third party resources section of the JavaMail docs on Sun's site that there are all sorts of implementations of SMTP, IMAP and POP3 avaliable, but nothing which supports the non-SMTP compliant features of some email servers. I only know of one project which is even attempting this (mailsomething mail http://mapi.sourceforge.net/) but it has yet to even release any code, so I wouldn't hold your breath. However, your last topic suggested all you were looking for is a way to send email through a Notes 5 server using Java, correct? In which case JavaMail is fine, though you may need to either store more than 1 address against a user (both SMTP and Notes syntax) or write something to convert between Notes and SMTP. Remember that sending an email to a Notes server in the form email@example.com will work (because Notes is does have SMTP compliant functionality), you only have to worry about the difference between the addresses you have and those which JavaMail will allow.
you can use the Document Object Model of Lotus Notes itself. There are basically 2 ways to connect to Lotus Domino from an external app Server: - use Lotus Domino Corba Interface (use, not write corba yourself). - local Connection (you'll need at least a notes client on the box where the external app Server is running). this article might help: http://www-10.lotus.com/ldd/today.nsf/8a6d147cf55a7fd385256658007aacf1/c18beec15f55f1ef85256d66005c7da9?OpenDocument (this is part 2. There is also part 1. For usage of Domino objects for sending email, look in Documentation of Method send() in Class Document. I am sure there is some sample code. If you don't read whole article search for recycle(). You should call this method on all Notes Java Objects before they get garbage collected. Its no joke. Problems might pop up later if you don't use it. regards Axel