CommuniGate Pro Sendmail API for OS/400
Using command-line utilitues in the OS/400 environment has its own specifics. Unlike command-line interfaces in other OSes supported by CommuniGate Pro, OS/400 does not provide built-in means for "piping" output of one program as an input for another one.
So, the OS/400 version of the 'sendmail' utility shipped with CommuniGate Pro uses a slightly different parameter set. The CommuniGate Pro Sendmail API is decribed here.
You can download the latest version of this API from here.
The CommuniGate Pro Sendmail API uses so-called stream files for input. To convert message strings into stream files you can use the "write message" utility available from this savefile. The contents of this savefile are described here.