Sorry the command was wrong I then corrected it to
ns_java MessageComposer::compose_message $outgoing_msg_id $tmpfile
I then added path of libnsjava.so to LD_LIBRARY_PATH because java was giving me an error that the file could not be found.
Then when I tried to send message I got this error
java.lang.NoClassDefFoundError: nsjava/NsLog
at
[21/Mar/2002:11:10:46][13011.16392][-conn3-] Error: JavaEvalCmd: Java exception occured:
[21/Mar/2002:11:10:46][13011.16392][-conn3-] Notice: error: JavaEvalCmd: Java exception occured:
Args:
ns_java
MessageComposer::compose_message
11
/web/server/www/webmail/tmp/.wm_msgLmyR6S