aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes code for sending mail to lotus notes. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "code for sending mail to lotus notes." Watch "code for sending mail to lotus notes." New topic
Author

code for sending mail to lotus notes.

arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
Hi ;
I need some code to send email to lotus notes server without using the Java Mail API.
thanks in advance
arun
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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 mailbox@domain.tld 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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
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
Mrudula Madiraju
Greenhorn

Joined: Mar 03, 2004
Posts: 12
thanks guru
 
jQuery in Action, 2nd edition
 
subject: code for sending mail to lotus notes.