Sending email from AS/400 program via Domino

I am an AS/400 consultant and programmer. My current client uses Lotus Notes and the Domino server on the AS/400. I am trying to figure out how to send an e-mail from an AS/400 program via the Domino mail server that we have set up. The company uses Lotus Notes for all of its e-mail, calendars, etc.

I looked on some other sites and they mentioned a library (RNHLIB) of example programs that could be used as examples and API programs to accomplish this. However, I don't believe that library of programs is available anywhere.

My primary programming language is RPG, but I do know some Java. My client would prefer I stick with native AS/400 programs. Do you have any suggestions?

Why not just use Java mail API? Your Java code can run native on the iSeries. You can also call it from RPG or COBOL too.

Do you have comments on this Ask the Expert question and response? Let us know.

This was first published in September 2004