A J2EE application can send a mail to the SMTP server by using JavaMail.
For details on the settings for connecting to the SMTP server, see 6.3 Mail configuration settings in the uCosminexus Application Server Application Setup Guide.